Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.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.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset",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.001838/0.001838, 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.002137/0.002137, allocations: 196.6 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.592/1.592, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.349/2.349, allocations: 390.3 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 63.91 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5788/0.5802, allocations: 140.4 MB / 0.9497 GB, free: 9.176 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.001929/0.5822, allocations: 0.8793 MB / 0.9506 GB, free: 8.492 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001088/0.5833, allocations: 1.18 MB / 0.9517 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.917e-05/0.5833, allocations: 0 / 0.9517 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.37e-05/0.5834, allocations: 15.86 kB / 0.9518 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.932e-05/0.5835, allocations: 18.5 kB / 0.9518 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004288/0.5839, allocations: 144.7 kB / 0.9519 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000156/0.5841, allocations: 168.9 kB / 0.9521 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001131/0.5842, allocations: 43.03 kB / 0.9521 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.267e-05/0.5843, allocations: 61.8 kB / 0.9522 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.718e-05/0.5844, allocations: 67.23 kB / 0.9522 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.063e-05/0.5844, allocations: 14.84 kB / 0.9523 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.858e-05/0.5845, allocations: 29.8 kB / 0.9523 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.632e-05/0.5845, allocations: 28.03 kB / 0.9523 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.392e-05/0.5846, allocations: 61.88 kB / 0.9524 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001608/0.5848, allocations: 169.1 kB / 0.9525 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.5848, allocations: 4 kB / 0.9525 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.112e-06/0.5848, allocations: 0 / 0.9525 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.568e-06/0.5848, allocations: 0 / 0.9525 GB, free: 6.992 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000543/0.5853, allocations: 457.6 kB / 0.953 GB, free: 6.535 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.5854, allocations: 13.64 kB / 0.953 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.627e-05/0.5854, allocations: 37.09 kB / 0.953 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.995e-05/0.5855, allocations: 14.28 kB / 0.953 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004835/0.5859, allocations: 246.9 kB / 0.9533 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.55e-05/0.586, allocations: 8.25 kB / 0.9533 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.73e-05/0.586, allocations: 21.34 kB / 0.9533 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002016/0.5862, allocations: 87.83 kB / 0.9534 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.5862, allocations: 1.312 kB / 0.9534 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.5863, allocations: 5.438 kB / 0.9534 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.5863, allocations: 1.5 kB / 0.9534 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001805/0.5864, allocations: 54.02 kB / 0.9534 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005744/0.587, allocations: 386.3 kB / 0.9538 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001112/0.5872, allocations: 35.84 kB / 0.9538 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.781e-05/0.5872, allocations: 28.58 kB / 0.9539 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.5873, allocations: 1.188 kB / 0.9539 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002135/0.5875, allocations: 103.6 kB / 0.954 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.5875, allocations: 0 / 0.954 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0004057/0.5879, allocations: 132.2 kB / 0.9541 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.668e-05/0.5879, allocations: 69.67 kB / 0.9542 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.951e-05/0.588, allocations: 149.1 kB / 0.9543 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.5881, allocations: 32.48 kB / 0.9543 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.899e-05/0.5881, allocations: 106.7 kB / 0.9544 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.907e-05/0.5881, allocations: 31.88 kB / 0.9545 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.967e-05/0.5882, allocations: 44.73 kB / 0.9545 GB, free: 5.145 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.775e-05/0.5883, allocations: 325.7 kB / 0.9548 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001557/0.5884, allocations: 50.55 kB / 0.9549 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001683/0.5886, allocations: 137.2 kB / 0.955 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002727/0.5889, allocations: 198.2 kB / 0.9552 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.5889, allocations: 5.375 kB / 0.9552 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004551/0.5894, allocations: 247.2 kB / 0.9554 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.5894, allocations: 34.98 kB / 0.9555 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.5894, allocations: 3.875 kB / 0.9555 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.5894, allocations: 7.531 kB / 0.9555 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.5895, allocations: 29.61 kB / 0.9555 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.5895, allocations: 3.906 kB / 0.9555 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002298/0.5898, allocations: 39.77 kB / 0.9555 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.313e-05/0.5898, allocations: 10.28 kB / 0.9556 GB, free: 4.246 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.435e-05/0.5899, allocations: 135.3 kB / 0.9557 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.638e-05/0.5899, allocations: 11.94 kB / 0.9557 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.238e-05/0.5899, allocations: 11.5 kB / 0.9557 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.59, allocations: 5.422 kB / 0.9557 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.59, allocations: 3.984 kB / 0.9557 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.59, allocations: 1.156 kB / 0.9557 GB, free: 4.09 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004471/0.5904, allocations: 390.5 kB / 0.9561 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.5904, allocations: 1.219 kB / 0.9561 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.434e-05/0.5905, allocations: 28.95 kB / 0.9561 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.5905, allocations: 1.094 kB / 0.9561 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.5906, allocations: 1.219 kB / 0.9561 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.5906, allocations: 1.125 kB / 0.9561 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.5906, allocations: 3.984 kB / 0.9561 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003633/0.5909, allocations: 242.7 kB / 0.9564 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.03e-05/0.591, allocations: 87.77 kB / 0.9564 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/0.591, allocations: 5.375 kB / 0.9564 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.338e-05/0.5911, allocations: 11.72 kB / 0.9565 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.96e-05/0.5911, allocations: 11.42 kB / 0.9565 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.5912, allocations: 8.625 kB / 0.9565 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.614e-05/0.5912, allocations: 107.5 kB / 0.9566 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5912, allocations: 0 / 0.9566 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002868/0.5915, allocations: 32.59 kB / 0.9566 GB, free: 3.289 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005344/0.592, allocations: 0.7999 MB / 0.9574 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000348/0.5924, allocations: 188 kB / 0.9576 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.5924, allocations: 0 / 0.9576 GB, free: 2.43 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001144/0.5925, allocations: 36.09 kB / 0.9576 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.5928, allocations: 24.61 kB / 0.9576 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001827/0.5947, allocations: 1.956 MB / 0.9595 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001318/0.5948, allocations: 0.7035 MB / 0.9602 GB, free: 15.96 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.896e-05/0.5949, allocations: 16.2 kB / 0.9602 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.442e-05/0.5949, allocations: 39.36 kB / 0.9603 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.5949, allocations: 4 kB / 0.9603 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01883/0.6138, allocations: 3.117 MB / 0.9633 GB, free: 14.34 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.149/7.763, allocations: 20.53 kB / 0.9633 GB, free: 14.33 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches