Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.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 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.IntegratorWithReset,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_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.005766/0.005766, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001362/0.001362, allocations: 193.7 kB / 16.67 MB, free: 5.977 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.293 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.564/2.564, allocations: 437 MB / 0.7105 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 67.89 kB / 1.018 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2631, allocations: 151.6 MB / 1.166 GB, free: 7.246 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002106/0.2653, allocations: 0.8847 MB / 1.167 GB, free: 6.359 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001589/0.2669, allocations: 1.179 MB / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.578e-05/0.267, allocations: 0 / 1.168 GB, free: 5.164 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.221e-05/0.2671, allocations: 7.875 kB / 1.168 GB, free: 5.156 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 9.789e-05/0.2672, allocations: 27.78 kB / 1.168 GB, free: 5.129 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005913/0.2678, allocations: 150.7 kB / 1.168 GB, free: 4.984 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002426/0.268, allocations: 171.6 kB / 1.169 GB, free: 4.816 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.2681, allocations: 37.09 kB / 1.169 GB, free: 4.777 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001227/0.2683, allocations: 75.75 kB / 1.169 GB, free: 4.703 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001208/0.2684, allocations: 63.75 kB / 1.169 GB, free: 4.641 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.928e-05/0.2684, allocations: 16 kB / 1.169 GB, free: 4.625 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.038e-05/0.2685, allocations: 31.97 kB / 1.169 GB, free: 4.594 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.279e-05/0.2686, allocations: 27.91 kB / 1.169 GB, free: 4.566 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.696e-05/0.2687, allocations: 59.72 kB / 1.169 GB, free: 4.508 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002406/0.2689, allocations: 167.7 kB / 1.169 GB, free: 4.344 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2689, allocations: 4 kB / 1.169 GB, free: 4.34 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.973e-06/0.2689, allocations: 0 / 1.169 GB, free: 4.34 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.618e-06/0.2689, allocations: 0 / 1.169 GB, free: 4.34 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006977/0.2696, allocations: 460.6 kB / 1.169 GB, free: 3.832 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.2697, allocations: 8.031 kB / 1.169 GB, free: 3.824 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.194e-05/0.2697, allocations: 50.67 kB / 1.17 GB, free: 3.766 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.581e-05/0.2698, allocations: 16.84 kB / 1.17 GB, free: 3.75 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005429/0.2703, allocations: 244.3 kB / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.846e-05/0.2704, allocations: 8.375 kB / 1.17 GB, free: 3.465 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.85e-05/0.2704, allocations: 12.38 kB / 1.17 GB, free: 3.453 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002254/0.2706, allocations: 97.89 kB / 1.17 GB, free: 3.352 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.768e-06/0.2707, allocations: 0 / 1.17 GB, free: 3.352 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.2707, allocations: 7.938 kB / 1.17 GB, free: 3.344 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.007e-06/0.2707, allocations: 7.938 kB / 1.17 GB, free: 3.336 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001769/0.2709, allocations: 39.95 kB / 1.17 GB, free: 3.297 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007081/0.2716, allocations: 396.5 kB / 1.17 GB, free: 2.859 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001205/0.2717, allocations: 38.56 kB / 1.17 GB, free: 2.812 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.139e-05/0.2718, allocations: 28.95 kB / 1.17 GB, free: 2.781 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.2719, allocations: 0 / 1.17 GB, free: 2.781 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002516/0.2721, allocations: 99.3 kB / 1.17 GB, free: 2.672 MB / 0.92 GB Notification: Performance of pre-optimization done (n=10): time 1.293e-06/0.2721, allocations: 0 / 1.17 GB, free: 2.672 MB / 0.92 GB Notification: Performance of matching and sorting (n=10): time 0.00044/0.2726, allocations: 141.4 kB / 1.171 GB, free: 2.527 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.643e-05/0.2726, allocations: 55.34 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.2727, allocations: 143.9 kB / 1.171 GB, free: 2.312 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.2728, allocations: 33.7 kB / 1.171 GB, free: 2.273 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.094e-05/0.2728, allocations: 112 kB / 1.171 GB, free: 2.16 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.7e-05/0.2729, allocations: 31.88 kB / 1.171 GB, free: 2.129 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.621e-05/0.273, allocations: 49.69 kB / 1.171 GB, free: 2.074 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.2731, allocations: 318.8 kB / 1.171 GB, free: 1.754 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.2732, allocations: 51.95 kB / 1.171 GB, free: 1.703 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001993/0.2735, allocations: 131.9 kB / 1.172 GB, free: 1.539 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000316/0.2738, allocations: 204.6 kB / 1.172 GB, free: 1.293 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.2738, allocations: 0 / 1.172 GB, free: 1.293 MB / 0.92 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004839/0.2743, allocations: 247.2 kB / 1.172 GB, free: 1.039 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.904e-05/0.2743, allocations: 41.69 kB / 1.172 GB, free: 0.9922 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.2743, allocations: 3.938 kB / 1.172 GB, free: 0.9883 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.2744, allocations: 4 kB / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.2745, allocations: 27.92 kB / 1.172 GB, free: 0.957 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.2745, allocations: 7.938 kB / 1.172 GB, free: 0.9492 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002348/0.2747, allocations: 35.98 kB / 1.172 GB, free: 0.9141 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.769e-05/0.2748, allocations: 20 kB / 1.172 GB, free: 0.8945 MB / 0.92 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 0.0001045/0.2749, allocations: 126.8 kB / 1.172 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.203e-05/0.2749, allocations: 15.89 kB / 1.172 GB, free: 0.75 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.82e-05/0.275, allocations: 12.72 kB / 1.172 GB, free: 0.7383 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.275, allocations: 7.969 kB / 1.172 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.275, allocations: 0 / 1.172 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.275, allocations: 0 / 1.172 GB, free: 0.7305 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005708/0.2756, allocations: 406.4 kB / 1.173 GB, free: 284 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.2756, allocations: 480 / 1.173 GB, free: 284 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.64e-05/0.2757, allocations: 19.86 kB / 1.173 GB, free: 264 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.2757, allocations: 0 / 1.173 GB, free: 264 kB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.357e-05/0.2757, allocations: 4 kB / 1.173 GB, free: 260 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2757, allocations: 0 / 1.173 GB, free: 260 kB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2757, allocations: 3.938 kB / 1.173 GB, free: 256 kB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004349/0.2762, allocations: 251.4 kB / 1.173 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.571e-05/0.2762, allocations: 88.94 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.2762, allocations: 4 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.549e-05/0.2763, allocations: 11.98 kB / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.179e-05/0.2764, allocations: 7.984 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-06/0.2764, allocations: 4 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.129e-05/0.2765, allocations: 105.5 kB / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2765, allocations: 0 / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003039/0.2768, allocations: 35.95 kB / 1.173 GB, free: 15.72 MB / 0.9356 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.0007092/0.2775, allocations: 0.7864 MB / 1.174 GB, free: 14.91 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000389/0.2779, allocations: 179.2 kB / 1.174 GB, free: 14.72 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2779, allocations: 0 / 1.174 GB, free: 14.72 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001187/0.2781, allocations: 40.66 kB / 1.174 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003046/0.2784, allocations: 24.3 kB / 1.174 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00236/0.2807, allocations: 1.967 MB / 1.176 GB, free: 12.53 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002761/0.281, allocations: 0.7006 MB / 1.177 GB, free: 11.8 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 6.613e-05/0.2811, allocations: 16.64 kB / 1.177 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.918e-05/0.2812, allocations: 39.42 kB / 1.177 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of SimCode: time 4.01e-07/0.2812, allocations: 0 / 1.177 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02035/0.3015, allocations: 3.176 MB / 1.18 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.437/7.739, allocations: 3.094 kB / 1.18 GB, free: 8.699 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Reals.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_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches