Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Cos,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Cos",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.Cos,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Cos",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006122/0.006122, allocations: 99.34 kB / 15.73 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 198.4 kB / 16.67 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.58/2.58, allocations: 437 MB / 0.7105 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 71.89 kB / 1.018 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2661, allocations: 151.6 MB / 1.166 GB, free: 7.262 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.Cos): time 0.001721/0.2679, allocations: 0.6556 MB / 1.167 GB, free: 6.605 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008706/0.2688, allocations: 0.8199 MB / 1.168 GB, free: 5.773 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.516e-05/0.2688, allocations: 0 / 1.168 GB, free: 5.773 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.662e-05/0.2689, allocations: 7.938 kB / 1.168 GB, free: 5.766 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.743e-05/0.2689, allocations: 3.938 kB / 1.168 GB, free: 5.762 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000138/0.2691, allocations: 19.91 kB / 1.168 GB, free: 5.742 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.333e-05/0.2691, allocations: 16 kB / 1.168 GB, free: 5.727 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.543e-05/0.2692, allocations: 7.984 kB / 1.168 GB, free: 5.719 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 5.727e-05/0.2693, allocations: 11.94 kB / 1.168 GB, free: 5.707 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 3.726e-05/0.2693, allocations: 15.92 kB / 1.168 GB, free: 5.691 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.196e-05/0.2694, allocations: 0 / 1.168 GB, free: 5.691 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.095e-06/0.2694, allocations: 4 kB / 1.168 GB, free: 5.688 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.371e-05/0.2694, allocations: 0 / 1.168 GB, free: 5.688 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.8e-05/0.2694, allocations: 11.94 kB / 1.168 GB, free: 5.676 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 7.687e-05/0.2695, allocations: 27.88 kB / 1.168 GB, free: 5.648 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2695, allocations: 4 kB / 1.168 GB, free: 5.645 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.182e-06/0.2695, allocations: 0 / 1.168 GB, free: 5.645 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.419e-06/0.2695, allocations: 0 / 1.168 GB, free: 5.645 MB / 0.92 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004026/0.2699, allocations: 339.7 kB / 1.168 GB, free: 5.262 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.27, allocations: 8.031 kB / 1.168 GB, free: 5.254 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.041e-05/0.27, allocations: 34.75 kB / 1.168 GB, free: 5.211 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.976e-05/0.27, allocations: 0.9375 kB / 1.168 GB, free: 5.211 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/0.2701, allocations: 168.3 kB / 1.168 GB, free: 5.008 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.137e-06/0.2702, allocations: 4.312 kB / 1.168 GB, free: 5.004 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.557e-06/0.2702, allocations: 4.375 kB / 1.168 GB, free: 5 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/0.2703, allocations: 54.17 kB / 1.168 GB, free: 4.941 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.128e-06/0.2704, allocations: 3.938 kB / 1.168 GB, free: 4.938 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-06/0.2704, allocations: 0 / 1.168 GB, free: 4.938 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.2704, allocations: 0 / 1.168 GB, free: 4.938 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001737/0.2706, allocations: 39.95 kB / 1.168 GB, free: 4.898 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003053/0.2709, allocations: 241 kB / 1.169 GB, free: 4.613 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001224/0.271, allocations: 42.48 kB / 1.169 GB, free: 4.562 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.078e-05/0.2711, allocations: 20.91 kB / 1.169 GB, free: 4.539 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.848e-05/0.2711, allocations: 3.938 kB / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.38e-05/0.2712, allocations: 38.56 kB / 1.169 GB, free: 4.488 MB / 0.92 GB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.2712, allocations: 4 kB / 1.169 GB, free: 4.484 MB / 0.92 GB Notification: Performance of matching and sorting (n=2): time 0.0003486/0.2715, allocations: 77.64 kB / 1.169 GB, free: 4.402 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.603e-05/0.2716, allocations: 51.41 kB / 1.169 GB, free: 4.34 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.53e-05/0.2717, allocations: 101.9 kB / 1.169 GB, free: 4.23 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.024e-05/0.2717, allocations: 33.81 kB / 1.169 GB, free: 4.191 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.238e-05/0.2717, allocations: 80.14 kB / 1.169 GB, free: 4.109 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.001e-05/0.2718, allocations: 3.953 kB / 1.169 GB, free: 4.105 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.616e-05/0.2718, allocations: 17.72 kB / 1.169 GB, free: 4.082 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001065/0.2719, allocations: 310.8 kB / 1.169 GB, free: 3.77 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.669e-05/0.272, allocations: 19.92 kB / 1.169 GB, free: 3.75 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.704e-05/0.2721, allocations: 19.97 kB / 1.169 GB, free: 3.73 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000156/0.2722, allocations: 36.89 kB / 1.169 GB, free: 3.691 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.2723, allocations: 11.88 kB / 1.169 GB, free: 3.68 MB / 0.92 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001957/0.2725, allocations: 65.61 kB / 1.17 GB, free: 3.609 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.575e-05/0.2725, allocations: 8 kB / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2725, allocations: 0 / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.2725, allocations: 32 / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.031e-05/0.2726, allocations: 11.98 kB / 1.17 GB, free: 3.59 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.2726, allocations: 0 / 1.17 GB, free: 3.59 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.125e-05/0.2727, allocations: 8 kB / 1.17 GB, free: 3.582 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.2727, allocations: 4 kB / 1.17 GB, free: 3.578 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.091e-05/0.2728, allocations: 117.7 kB / 1.17 GB, free: 3.453 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.595e-05/0.2728, allocations: 0 / 1.17 GB, free: 3.453 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002502/0.2731, allocations: 76.78 kB / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.2731, allocations: 0 / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.2731, allocations: 0 / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.2731, allocations: 0 / 1.17 GB, free: 3.371 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001632/0.2733, allocations: 161.5 kB / 1.17 GB, free: 3.164 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.2733, allocations: 0 / 1.17 GB, free: 3.164 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.195e-05/0.2733, allocations: 12.17 kB / 1.17 GB, free: 3.152 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.2733, allocations: 3.938 kB / 1.17 GB, free: 3.148 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.662e-06/0.2734, allocations: 0 / 1.17 GB, free: 3.148 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2734, allocations: 0 / 1.17 GB, free: 3.148 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2734, allocations: 8.016 kB / 1.17 GB, free: 3.141 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002446/0.2736, allocations: 163.4 kB / 1.17 GB, free: 2.965 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.182e-05/0.2737, allocations: 89.05 kB / 1.17 GB, free: 2.859 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.2737, allocations: 4 kB / 1.17 GB, free: 2.855 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.552e-05/0.2738, allocations: 0 / 1.17 GB, free: 2.855 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.062e-05/0.2738, allocations: 12.02 kB / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-06/0.2738, allocations: 0 / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.198e-05/0.2739, allocations: 79.28 kB / 1.17 GB, free: 2.766 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.11e-07/0.2739, allocations: 0 / 1.17 GB, free: 2.766 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002222/0.2741, allocations: 4 kB / 1.17 GB, free: 2.762 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005271/0.2746, allocations: 0.6967 MB / 1.171 GB, free: 2.035 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.000213/0.2749, allocations: 43.95 kB / 1.171 GB, free: 1.992 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2749, allocations: 0 / 1.171 GB, free: 1.992 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 8.335e-05/0.275, allocations: 15.98 kB / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002999/0.2753, allocations: 4.156 kB / 1.171 GB, free: 1.973 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003747/0.2757, allocations: 143.5 kB / 1.171 GB, free: 1.793 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002126/0.2759, allocations: 0.6807 MB / 1.172 GB, free: 1.086 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 2.249e-05/0.2759, allocations: 0 / 1.172 GB, free: 1.086 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.317e-05/0.2759, allocations: 11.44 kB / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of SimCode: time 2.61e-07/0.276, allocations: 0 / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01603/0.292, allocations: 1.263 MB / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.399/7.691, allocations: 8.062 kB / 1.173 GB, free: 15.89 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Cos_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_Cos.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Cos_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_Cos.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.Cos.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches