Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Continuous.Validation.Derivative,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative",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.001118/0.001118, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.334/1.334, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.345/2.345, allocations: 390.2 MB / 0.6647 GB, free: 436 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 63.91 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5418/0.5432, allocations: 140.4 MB / 0.9497 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative): time 0.001931/0.5451, allocations: 1.038 MB / 0.9508 GB, free: 8.352 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009244/0.5461, allocations: 0.9947 MB / 0.9517 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.886e-05/0.5462, allocations: 4.656 kB / 0.9517 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001184/0.5463, allocations: 23.73 kB / 0.9518 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.169e-05/0.5464, allocations: 16.81 kB / 0.9518 GB, free: 7.5 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002339/0.5466, allocations: 67.28 kB / 0.9518 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001505/0.5468, allocations: 166 kB / 0.952 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.5469, allocations: 83.89 kB / 0.9521 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.273e-05/0.547, allocations: 62.94 kB / 0.9521 GB, free: 7.254 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.672e-05/0.5471, allocations: 88.06 kB / 0.9522 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.166e-05/0.5472, allocations: 15.56 kB / 0.9522 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 2.646e-05/0.5472, allocations: 15.38 kB / 0.9522 GB, free: 7.184 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.417e-05/0.5472, allocations: 33.78 kB / 0.9523 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.587e-05/0.5473, allocations: 69.12 kB / 0.9523 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001454/0.5474, allocations: 175.9 kB / 0.9525 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.5475, allocations: 0 / 0.9525 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.383e-06/0.5475, allocations: 3.938 kB / 0.9525 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.93e-06/0.5475, allocations: 0 / 0.9525 GB, free: 6.957 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0006448/0.5481, allocations: 476.8 kB / 0.953 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.11e-05/0.5482, allocations: 9.844 kB / 0.953 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.55e-05/0.5482, allocations: 47.86 kB / 0.953 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.299e-05/0.5483, allocations: 17.22 kB / 0.953 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001584/0.5484, allocations: 223.2 kB / 0.9533 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/0.5484, allocations: 11.22 kB / 0.9533 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.767e-05/0.5485, allocations: 13.97 kB / 0.9533 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002842/0.5488, allocations: 147.9 kB / 0.9534 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.5488, allocations: 3.938 kB / 0.9534 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.682e-05/0.5488, allocations: 5.5 kB / 0.9534 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.5488, allocations: 4.344 kB / 0.9534 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002685/0.5491, allocations: 104.7 kB / 0.9535 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000942/0.55, allocations: 0.5229 MB / 0.954 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003917/0.5504, allocations: 145.8 kB / 0.9542 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/0.5506, allocations: 84.08 kB / 0.9543 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.5507, allocations: 5.328 kB / 0.9543 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002509/0.5509, allocations: 130.2 kB / 0.9544 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=19): time 1.663e-06/0.5509, allocations: 0 / 0.9544 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19): time 0.0005352/0.5515, allocations: 223 kB / 0.9546 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.594e-05/0.5515, allocations: 57.73 kB / 0.9547 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.5516, allocations: 157.7 kB / 0.9548 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.88e-05/0.5516, allocations: 32.14 kB / 0.9548 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.111e-05/0.5517, allocations: 114.4 kB / 0.9549 GB, free: 4.879 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.615e-05/0.5517, allocations: 62.27 kB / 0.955 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.623e-05/0.5518, allocations: 43.14 kB / 0.955 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.34e-05/0.5518, allocations: 322.4 kB / 0.9554 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001984/0.552, allocations: 66.3 kB / 0.9554 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.5522, allocations: 92.53 kB / 0.9555 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003225/0.5526, allocations: 154.5 kB / 0.9557 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.5526, allocations: 0 / 0.9557 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004691/0.5531, allocations: 208.3 kB / 0.9559 GB, free: 4.184 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.5531, allocations: 11.28 kB / 0.9559 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.5531, allocations: 0 / 0.9559 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.123e-05/0.5531, allocations: 3.25 kB / 0.9559 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001904/0.5533, allocations: 43.31 kB / 0.9559 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.5533, allocations: 0 / 0.9559 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000137/0.5535, allocations: 26.23 kB / 0.9559 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.294e-05/0.5535, allocations: 3.094 kB / 0.9559 GB, free: 4.148 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,lesThr.lesHys.y,$PRE.lesThr.lesHys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 7.406e-05/0.5536, allocations: 136.7 kB / 0.9561 GB, free: 4.012 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.347e-05/0.5536, allocations: 18.53 kB / 0.9561 GB, free: 4 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003764/0.554, allocations: 187 kB / 0.9563 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.554, allocations: 1.781 kB / 0.9563 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.554, allocations: 0 / 0.9563 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.554, allocations: 3.984 kB / 0.9563 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006661/0.5547, allocations: 0.5887 MB / 0.9568 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.055e-06/0.5547, allocations: 6.469 kB / 0.9568 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001791/0.5549, allocations: 42.84 kB / 0.9569 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.5549, allocations: 2.156 kB / 0.9569 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.579e-05/0.5549, allocations: 3.375 kB / 0.9569 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.847e-06/0.5549, allocations: 6.094 kB / 0.9569 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.5549, allocations: 6.188 kB / 0.9569 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005163/0.5554, allocations: 384.4 kB / 0.9573 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.845e-05/0.5555, allocations: 91.33 kB / 0.9574 GB, free: 2.938 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.854e-05/0.5555, allocations: 11.59 kB / 0.9574 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000162/0.5557, allocations: 16.77 kB / 0.9574 GB, free: 2.922 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.425e-05/0.5557, allocations: 25.62 kB / 0.9574 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.5558, allocations: 9.562 kB / 0.9574 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.65e-05/0.5558, allocations: 114.1 kB / 0.9575 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5558, allocations: 0 / 0.9575 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002775/0.5561, allocations: 39.88 kB / 0.9576 GB, free: 2.797 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (der1.x,intWitRes.y,der2.x) * Number of discrete variables: 2 ($whenCondition1,lesThr.lesHys.y) * Number of discrete states: 1 (lesThr.lesHys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.0006983/0.5568, allocations: 0.9241 MB / 0.9585 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004055/0.5572, allocations: 171.5 kB / 0.9586 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.5572, allocations: 1.375 kB / 0.9586 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001733/0.5574, allocations: 88.39 kB / 0.9587 GB, free: 1.852 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003341/0.5578, allocations: 35.66 kB / 0.9588 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002171/0.5599, allocations: 2.106 MB / 0.9608 GB, free: 92 kB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.5602, allocations: 0.7217 MB / 0.9615 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 7.624e-05/0.5603, allocations: 20.08 kB / 0.9615 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.019e-05/0.5604, allocations: 49.23 kB / 0.9616 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of SimCode: time 5.11e-07/0.5604, allocations: 0 / 0.9616 GB, free: 15.32 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.019/0.5794, allocations: 3.513 MB / 0.965 GB, free: 13.56 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.209/7.789, allocations: 3.797 kB / 0.965 GB, free: 13.56 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Derivative.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Derivative.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches