Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.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.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_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.008292/0.008292, allocations: 101.8 kB / 15.73 MB, free: 5.992 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.002002/0.002002, allocations: 198.8 kB / 16.68 MB, free: 5.918 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.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.213/2.213, allocations: 390.3 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 67.91 kB / 0.9504 GB, free: 8.16 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8606/0.862, allocations: 140.4 MB / 1.087 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002863/0.8649, allocations: 1.818 MB / 1.089 GB, free: 4.02 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008786/0.8658, allocations: 0.5423 MB / 1.09 GB, free: 3.633 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.996e-05/0.8659, allocations: 6.688 kB / 1.09 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001266/0.866, allocations: 27.22 kB / 1.09 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.394e-05/0.8661, allocations: 24.5 kB / 1.09 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002023/0.8663, allocations: 61.38 kB / 1.09 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002082/0.8665, allocations: 181.4 kB / 1.09 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.8666, allocations: 48.5 kB / 1.09 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.379e-05/0.8667, allocations: 53.34 kB / 1.09 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.351e-05/0.8668, allocations: 57.12 kB / 1.09 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.517e-05/0.8668, allocations: 10.59 kB / 1.09 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.997e-05/0.8669, allocations: 14.56 kB / 1.09 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.31e-05/0.8669, allocations: 32.98 kB / 1.09 GB, free: 3.363 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.389e-05/0.867, allocations: 64.45 kB / 1.09 GB, free: 3.32 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001781/0.8671, allocations: 142 kB / 1.09 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.8672, allocations: 0.7969 kB / 1.09 GB, free: 3.25 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.054e-06/0.8672, allocations: 3.938 kB / 1.09 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.8672, allocations: 0 / 1.09 GB, free: 3.246 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006734/0.8679, allocations: 473.5 kB / 1.091 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.8679, allocations: 10.12 kB / 1.091 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.906e-05/0.868, allocations: 44.58 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.38e-05/0.868, allocations: 18.19 kB / 1.091 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002578/0.8683, allocations: 234.4 kB / 1.091 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.8683, allocations: 8.281 kB / 1.091 GB, free: 2.535 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.611e-05/0.8683, allocations: 17.33 kB / 1.091 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002903/0.8686, allocations: 148 kB / 1.091 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.8686, allocations: 0 / 1.091 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.8687, allocations: 6.844 kB / 1.091 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.8687, allocations: 2.688 kB / 1.091 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002401/0.8689, allocations: 68.27 kB / 1.091 GB, free: 2.406 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008001/0.8697, allocations: 0.7453 MB / 1.092 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000151/0.8699, allocations: 55.64 kB / 1.092 GB, free: 1.688 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.87, allocations: 30.53 kB / 1.092 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.87, allocations: 2.312 kB / 1.092 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000236/0.8703, allocations: 131.1 kB / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=11): time 1.322e-06/0.8703, allocations: 0 / 1.092 GB, free: 1.57 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0004906/0.8708, allocations: 156.5 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.398e-05/0.8708, allocations: 140.5 kB / 1.093 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001756/0.871, allocations: 195.8 kB / 1.093 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.871, allocations: 36.31 kB / 1.093 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.165e-05/0.8711, allocations: 133.7 kB / 1.093 GB, free: 1.051 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.944e-05/0.8711, allocations: 31.44 kB / 1.093 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.614e-05/0.8712, allocations: 43.19 kB / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.476e-05/0.8713, allocations: 328.8 kB / 1.093 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.8714, allocations: 41.58 kB / 1.093 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00016/0.8716, allocations: 150.3 kB / 1.094 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002861/0.8719, allocations: 214.2 kB / 1.094 GB, free: 320 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.8719, allocations: 1.344 kB / 1.094 GB, free: 320 kB / 0.8575 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003982/0.8723, allocations: 208.8 kB / 1.094 GB, free: 220 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.8723, allocations: 7.062 kB / 1.094 GB, free: 220 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.8723, allocations: 4.438 kB / 1.094 GB, free: 220 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.8723, allocations: 4.312 kB / 1.094 GB, free: 220 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001297/0.8725, allocations: 33.06 kB / 1.094 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.8725, allocations: 6.5 kB / 1.094 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001403/0.8726, allocations: 28.64 kB / 1.094 GB, free: 204 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.499e-05/0.8727, allocations: 8.938 kB / 1.094 GB, free: 204 kB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.245e-05/0.8727, allocations: 145.6 kB / 1.094 GB, free: 60 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/0.8728, allocations: 21.33 kB / 1.094 GB, free: 48 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.293e-05/0.8728, allocations: 22.14 kB / 1.094 GB, free: 36 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.8728, allocations: 1.656 kB / 1.094 GB, free: 36 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.8728, allocations: 0.9688 kB / 1.094 GB, free: 36 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.8728, allocations: 2.25 kB / 1.094 GB, free: 36 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007693/0.8736, allocations: 0.5137 MB / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.8736, allocations: 1.453 kB / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/0.8738, allocations: 16.22 kB / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.257e-06/0.8738, allocations: 1.328 kB / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.8738, allocations: 2.906 kB / 1.095 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.655e-06/0.8738, allocations: 5.969 kB / 1.095 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.8738, allocations: 0.875 kB / 1.095 GB, free: 15.6 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004982/0.8743, allocations: 362 kB / 1.095 GB, free: 15.33 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 5.627e-05/0.8744, allocations: 99.47 kB / 1.095 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.624e-05/0.8744, allocations: 3.641 kB / 1.095 GB, free: 15.22 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.8746, allocations: 18.66 kB / 1.095 GB, free: 15.21 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.585e-05/0.8746, allocations: 17.78 kB / 1.095 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.8747, allocations: 5.391 kB / 1.095 GB, free: 15.2 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001238/0.8748, allocations: 142.5 kB / 1.095 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8748, allocations: 0 / 1.095 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003328/0.8751, allocations: 30.31 kB / 1.095 GB, free: 15.1 MB / 0.8731 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * 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.0007512/0.8759, allocations: 0.8978 MB / 1.096 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0003294/0.8762, allocations: 117.2 kB / 1.096 GB, free: 14.26 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.8762, allocations: 0.7812 kB / 1.096 GB, free: 14.26 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.8764, allocations: 48.58 kB / 1.096 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005638/0.877, allocations: 66.61 kB / 1.097 GB, free: 14.23 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/0.8795, allocations: 2.266 MB / 1.099 GB, free: 12.36 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002661/0.8798, allocations: 0.7238 MB / 1.099 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 8.157e-05/0.8799, allocations: 16.19 kB / 1.099 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.305e-05/0.8799, allocations: 53.8 kB / 1.1 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of SimCode: time 3.2e-07/0.88, allocations: 4.594 kB / 1.1 GB, free: 11.62 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02227/0.9022, allocations: 4.017 MB / 1.103 GB, free: 11.05 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.43/8.332, allocations: 9.328 kB / 1.103 GB, free: 11.05 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches