Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_10_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.001361/0.001361, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001571/0.001571, allocations: 191 kB / 16.14 MB, free: 6.711 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.344/1.344, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.455/2.455, allocations: 437 MB / 0.7099 GB, free: 5.426 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 63.91 kB / 0.8687 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5548/0.5562, allocations: 151.6 MB / 1.017 GB, free: 2.82 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002927/0.5591, allocations: 1.881 MB / 1.019 GB, free: 0.9297 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.000779/0.5599, allocations: 0.5415 MB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.625e-05/0.56, allocations: 7.938 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.0001111/0.5601, allocations: 11.86 kB / 1.019 GB, free: 372 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 6.825e-05/0.5602, allocations: 19.8 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001747/0.5604, allocations: 59.94 kB / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001694/0.5606, allocations: 159.5 kB / 1.019 GB, free: 132 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.5607, allocations: 49.64 kB / 1.019 GB, free: 80 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.451e-05/0.5608, allocations: 55.66 kB / 1.019 GB, free: 24 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 7.324e-05/0.5609, allocations: 51.7 kB / 1.019 GB, free: 15.97 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.017e-05/0.5609, allocations: 8 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 1.937e-05/0.5609, allocations: 8 kB / 1.019 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.88e-05/0.561, allocations: 23.86 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.964e-05/0.561, allocations: 63.59 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001304/0.5612, allocations: 129.7 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.5612, allocations: 0 / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of FrontEnd: time 7.62e-07/0.5612, allocations: 0 / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.647e-06/0.5612, allocations: 0 / 1.02 GB, free: 15.75 MB / 0.7794 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.0006114/0.5618, allocations: 474.7 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.269e-05/0.5618, allocations: 8.031 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.883e-05/0.5619, allocations: 46.73 kB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.231e-05/0.5619, allocations: 16.75 kB / 1.02 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002101/0.5622, allocations: 232.4 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.5622, allocations: 12.23 kB / 1.02 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.805e-05/0.5622, allocations: 16.36 kB / 1.02 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002636/0.5625, allocations: 155.8 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.053e-06/0.5625, allocations: 0 / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.153e-05/0.5625, allocations: 0 / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.5625, allocations: 4 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002099/0.5627, allocations: 75.88 kB / 1.021 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007655/0.5635, allocations: 0.7276 MB / 1.021 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001338/0.5637, allocations: 58.48 kB / 1.021 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.5638, allocations: 32.83 kB / 1.021 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.5638, allocations: 0 / 1.021 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002322/0.564, allocations: 130.6 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=11): time 1.213e-06/0.564, allocations: 0 / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.0004606/0.5645, allocations: 165.3 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.304e-05/0.5646, allocations: 128.5 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001629/0.5647, allocations: 203.2 kB / 1.022 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.5648, allocations: 37.64 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 7.21e-05/0.5649, allocations: 135.9 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.768e-05/0.5649, allocations: 31.61 kB / 1.022 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.992e-05/0.5649, allocations: 37.72 kB / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001017/0.5651, allocations: 330.8 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.5652, allocations: 43.91 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001658/0.5654, allocations: 145.8 kB / 1.023 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/0.5657, allocations: 210.3 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.5657, allocations: 4 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003626/0.566, allocations: 205.4 kB / 1.023 GB, free: 11.74 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.5661, allocations: 8 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.5661, allocations: 4 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.5661, allocations: 4 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001159/0.5662, allocations: 35.91 kB / 1.023 GB, free: 11.69 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/0.5662, allocations: 11.94 kB / 1.023 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/0.5664, allocations: 27.83 kB / 1.023 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.5664, allocations: 8 kB / 1.023 GB, free: 11.64 MB / 0.7794 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 9.63e-05/0.5665, allocations: 143.4 kB / 1.023 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.73e-05/0.5665, allocations: 19.8 kB / 1.023 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.656e-05/0.5666, allocations: 21.41 kB / 1.023 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.5666, allocations: 0 / 1.023 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.5666, allocations: 4 kB / 1.023 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.5666, allocations: 0 / 1.023 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006774/0.5673, allocations: 0.5132 MB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-06/0.5673, allocations: 4 kB / 1.024 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.5674, allocations: 15.92 kB / 1.024 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.053e-06/0.5674, allocations: 4 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.5674, allocations: 4.266 kB / 1.024 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.5674, allocations: 7.938 kB / 1.024 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.5674, allocations: 0 / 1.024 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004559/0.5679, allocations: 364.1 kB / 1.024 GB, free: 10.47 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.884e-05/0.568, allocations: 96.86 kB / 1.024 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.351e-05/0.568, allocations: 0 / 1.024 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001662/0.5682, allocations: 23.97 kB / 1.024 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.455e-05/0.5682, allocations: 11.97 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/0.5682, allocations: 4 kB / 1.025 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001073/0.5683, allocations: 144.6 kB / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5684, allocations: 0 / 1.025 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003087/0.5687, allocations: 28 kB / 1.025 GB, free: 10.15 MB / 0.7794 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.0007036/0.5694, allocations: 0.8985 MB / 1.026 GB, free: 9.219 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002749/0.5697, allocations: 123.8 kB / 1.026 GB, free: 9.098 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.5697, allocations: 4 kB / 1.026 GB, free: 9.094 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001494/0.5698, allocations: 51.97 kB / 1.026 GB, free: 9.043 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005001/0.5703, allocations: 58.89 kB / 1.026 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002301/0.5726, allocations: 2.288 MB / 1.028 GB, free: 6.5 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.5729, allocations: 0.7206 MB / 1.029 GB, free: 5.754 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.146e-05/0.573, allocations: 17.53 kB / 1.029 GB, free: 5.734 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.229e-05/0.5731, allocations: 55.42 kB / 1.029 GB, free: 5.68 MB / 0.7794 GB Notification: Performance of SimCode: time 5.11e-07/0.5731, allocations: 0 / 1.029 GB, free: 5.68 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5473/1.12, allocations: 3.667 MB / 1.032 GB, free: 2.137 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002285/1.121, allocations: 201.8 kB / 1.033 GB, free: 1.883 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.79/2.911, allocations: 0 / 1.033 GB, free: 1.883 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches