Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001754/0.001754, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00219/0.00219, allocations: 218.7 kB / 22.26 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.562/1.562, allocations: 230.6 MB / 256 MB, free: 7.961 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.472/3.472, allocations: 0.505 GB / 0.8101 GB, free: 22 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002161/0.002161, allocations: 66.83 kB / 1.177 GB, free: 17.08 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3611/0.3633, allocations: 180.2 MB / 1.353 GB, free: 8.449 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003649/0.3669, allocations: 1.849 MB / 1.355 GB, free: 6.59 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001487/0.3684, allocations: 0.5849 MB / 1.355 GB, free: 6 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001723/0.3686, allocations: 7.938 kB / 1.355 GB, free: 5.992 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001817/0.3688, allocations: 23.72 kB / 1.355 GB, free: 5.969 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0001044/0.3689, allocations: 27.73 kB / 1.355 GB, free: 5.941 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003055/0.3692, allocations: 83.78 kB / 1.355 GB, free: 5.859 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0003214/0.3695, allocations: 163.5 kB / 1.356 GB, free: 5.699 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001592/0.3696, allocations: 38 kB / 1.356 GB, free: 5.66 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001134/0.3698, allocations: 67.66 kB / 1.356 GB, free: 5.594 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001017/0.3699, allocations: 51.7 kB / 1.356 GB, free: 5.543 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.982e-05/0.3699, allocations: 8 kB / 1.356 GB, free: 5.535 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 4.094e-05/0.3699, allocations: 12 kB / 1.356 GB, free: 5.523 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.308e-05/0.37, allocations: 31.84 kB / 1.356 GB, free: 5.492 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 8.54e-05/0.3701, allocations: 63.61 kB / 1.356 GB, free: 5.43 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002392/0.3703, allocations: 135.3 kB / 1.356 GB, free: 5.297 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3703, allocations: 0 / 1.356 GB, free: 5.297 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.694e-06/0.3703, allocations: 4 kB / 1.356 GB, free: 5.293 MB / 1.045 GB Notification: Performance of Transformations before backend: time 8.436e-06/0.3703, allocations: 0 / 1.356 GB, free: 5.293 MB / 1.045 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.0007856/0.3711, allocations: 431.1 kB / 1.356 GB, free: 4.836 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.3711, allocations: 12.03 kB / 1.356 GB, free: 4.824 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.465e-05/0.3712, allocations: 46.73 kB / 1.356 GB, free: 4.77 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.645e-05/0.3712, allocations: 16.84 kB / 1.356 GB, free: 4.754 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003517/0.3716, allocations: 174.2 kB / 1.357 GB, free: 4.559 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.192e-05/0.3716, allocations: 12.31 kB / 1.357 GB, free: 4.547 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.568e-05/0.3716, allocations: 16.36 kB / 1.357 GB, free: 4.531 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003158/0.372, allocations: 146 kB / 1.357 GB, free: 4.367 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.372, allocations: 7.938 kB / 1.357 GB, free: 4.359 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.373e-05/0.372, allocations: 4 kB / 1.357 GB, free: 4.355 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.372, allocations: 4 kB / 1.357 GB, free: 4.352 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002522/0.3722, allocations: 79.81 kB / 1.357 GB, free: 4.273 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.3733, allocations: 0.7073 MB / 1.358 GB, free: 3.508 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000158/0.3735, allocations: 46.56 kB / 1.358 GB, free: 3.453 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.3736, allocations: 28.83 kB / 1.358 GB, free: 3.422 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.3736, allocations: 8 kB / 1.358 GB, free: 3.414 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002655/0.3739, allocations: 126.8 kB / 1.358 GB, free: 3.266 MB / 1.045 GB Notification: Performance of pre-optimization done (n=11): time 1.302e-06/0.3739, allocations: 0 / 1.358 GB, free: 3.266 MB / 1.045 GB Notification: Performance of matching and sorting (n=11): time 0.000529/0.3744, allocations: 169.6 kB / 1.358 GB, free: 3.094 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.3745, allocations: 136.5 kB / 1.358 GB, free: 2.93 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002126/0.3747, allocations: 199 kB / 1.358 GB, free: 2.727 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.3748, allocations: 29.7 kB / 1.358 GB, free: 2.691 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.928e-05/0.3749, allocations: 128 kB / 1.358 GB, free: 2.562 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 3.547e-05/0.3749, allocations: 31.77 kB / 1.358 GB, free: 2.531 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.014e-05/0.375, allocations: 41.7 kB / 1.358 GB, free: 2.484 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001576/0.3751, allocations: 330.9 kB / 1.359 GB, free: 2.152 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001411/0.3753, allocations: 39.97 kB / 1.359 GB, free: 2.113 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002117/0.3755, allocations: 151.5 kB / 1.359 GB, free: 1.914 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003419/0.3758, allocations: 198.6 kB / 1.359 GB, free: 1.668 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3758, allocations: 0 / 1.359 GB, free: 1.668 MB / 1.045 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004472/0.3763, allocations: 221.1 kB / 1.359 GB, free: 1.445 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/0.3763, allocations: 4 kB / 1.359 GB, free: 1.441 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.3763, allocations: 7.938 kB / 1.359 GB, free: 1.434 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.521e-05/0.3763, allocations: 8 kB / 1.359 GB, free: 1.426 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001304/0.3765, allocations: 32.42 kB / 1.359 GB, free: 1.395 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.3765, allocations: 11.98 kB / 1.359 GB, free: 1.383 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001517/0.3766, allocations: 27.88 kB / 1.359 GB, free: 1.355 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.3766, allocations: 11.94 kB / 1.359 GB, free: 1.344 MB / 1.045 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 0.0001442/0.3768, allocations: 142.7 kB / 1.36 GB, free: 1.195 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.34e-05/0.3768, allocations: 15.91 kB / 1.36 GB, free: 1.18 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.053e-05/0.3769, allocations: 21.39 kB / 1.36 GB, free: 1.156 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.3769, allocations: 7.938 kB / 1.36 GB, free: 1.148 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.3769, allocations: 4 kB / 1.36 GB, free: 1.145 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3769, allocations: 0 / 1.36 GB, free: 1.145 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000811/0.3777, allocations: 496.6 kB / 1.36 GB, free: 0.6094 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.3777, allocations: 0 / 1.36 GB, free: 0.6094 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.3778, allocations: 15.98 kB / 1.36 GB, free: 0.5938 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.3778, allocations: 0 / 1.36 GB, free: 0.5938 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.3778, allocations: 8 kB / 1.36 GB, free: 0.5859 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.3778, allocations: 3.938 kB / 1.36 GB, free: 0.582 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.3778, allocations: 3.938 kB / 1.36 GB, free: 0.5781 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005218/0.3784, allocations: 368.6 kB / 1.36 GB, free: 200 kB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 3.715e-05/0.3784, allocations: 19.92 kB / 1.36 GB, free: 180 kB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.732e-05/0.3784, allocations: 7.938 kB / 1.36 GB, free: 172 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001978/0.3786, allocations: 19.95 kB / 1.361 GB, free: 152 kB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.76e-05/0.3787, allocations: 15.92 kB / 1.361 GB, free: 136 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.3787, allocations: 8 kB / 1.361 GB, free: 128 kB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0001424/0.3788, allocations: 140.4 kB / 1.361 GB, free: 15.99 MB / 1.061 GB Notification: Performance of sort global known variables: time 1e-07/0.3788, allocations: 4 kB / 1.361 GB, free: 15.98 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.000351/0.3792, allocations: 28 kB / 1.361 GB, free: 15.96 MB / 1.061 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.0008847/0.3801, allocations: 0.8928 MB / 1.362 GB, free: 15.03 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003327/0.3804, allocations: 116.6 kB / 1.362 GB, free: 14.92 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3804, allocations: 0 / 1.362 GB, free: 14.92 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001452/0.3805, allocations: 56.09 kB / 1.362 GB, free: 14.86 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005646/0.3811, allocations: 62.27 kB / 1.362 GB, free: 14.81 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002984/0.3841, allocations: 2.27 MB / 1.364 GB, free: 12.34 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003567/0.3844, allocations: 0.7242 MB / 1.365 GB, free: 11.59 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.192e-05/0.3845, allocations: 17.48 kB / 1.365 GB, free: 11.57 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.175e-05/0.3846, allocations: 55.69 kB / 1.365 GB, free: 11.52 MB / 1.061 GB Notification: Performance of SimCode: time 4.01e-07/0.3846, allocations: 0 / 1.365 GB, free: 11.52 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04141/0.426, allocations: 4.237 MB / 1.369 GB, free: 7.438 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.61, allocations: 5.672 kB / 1.369 GB, free: 7.438 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.81671943119727]