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.001313/0.001313, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 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.001581/0.001581, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 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 0.9297/0.9297, allocations: 177.2 MB / 202.8 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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 1.835/1.835, allocations: 389 MB / 0.633 GB, free: 12.69 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 0.9997 GB, free: 13.49 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.609e-05/1.756e-05, allocations: 2.281 kB / 0.9997 GB, free: 13.49 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.001978/0.001995, allocations: 1.78 MB / 1.001 GB, free: 11.7 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.000741/0.002736, allocations: 0.5532 MB / 1.002 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.592e-05/0.002812, allocations: 7.875 kB / 1.002 GB, free: 11.13 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001166/0.002929, allocations: 27.73 kB / 1.002 GB, free: 11.11 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 5.604e-05/0.002985, allocations: 23.73 kB / 1.002 GB, free: 11.08 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001831/0.003168, allocations: 79.78 kB / 1.002 GB, free: 11 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001725/0.003341, allocations: 175.4 kB / 1.002 GB, free: 10.83 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.003456, allocations: 37.78 kB / 1.002 GB, free: 10.79 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 8.659e-05/0.003543, allocations: 71.8 kB / 1.002 GB, free: 10.72 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 5.55e-05/0.003598, allocations: 47.81 kB / 1.002 GB, free: 10.68 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.609e-05/0.003624, allocations: 8 kB / 1.002 GB, free: 10.67 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 1.414e-05/0.003639, allocations: 12 kB / 1.002 GB, free: 10.66 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 2.528e-05/0.003664, allocations: 27.86 kB / 1.002 GB, free: 10.63 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 4.035e-05/0.003704, allocations: 39.89 kB / 1.002 GB, free: 10.59 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001414/0.003846, allocations: 135.4 kB / 1.003 GB, free: 10.46 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.613e-06/0.003847, allocations: 4 kB / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of FrontEnd: time 8.12e-07/0.003848, allocations: 3.938 kB / 1.003 GB, free: 10.45 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.003852, allocations: 4 kB / 1.003 GB, free: 10.45 MB / 0.9636 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.0005066/0.004359, allocations: 427.2 kB / 1.003 GB, free: 9.992 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.004394, allocations: 8.75 kB / 1.003 GB, free: 9.984 MB / 0.9636 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.316e-05/0.004427, allocations: 42.75 kB / 1.003 GB, free: 9.934 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.375e-05/0.00446, allocations: 24.78 kB / 1.003 GB, free: 9.91 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002086/0.004669, allocations: 177.4 kB / 1.003 GB, free: 9.711 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.134e-05/0.00468, allocations: 8.375 kB / 1.003 GB, free: 9.703 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.248e-05/0.004703, allocations: 12.38 kB / 1.003 GB, free: 9.691 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001992/0.004902, allocations: 148.2 kB / 1.003 GB, free: 9.527 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.004911, allocations: 4.188 kB / 1.003 GB, free: 9.523 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.004924, allocations: 8.125 kB / 1.003 GB, free: 9.516 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.63e-06/0.004929, allocations: 4 kB / 1.003 GB, free: 9.512 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001315/0.005061, allocations: 73.94 kB / 1.004 GB, free: 9.441 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006668/0.005728, allocations: 0.676 MB / 1.004 GB, free: 8.707 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001021/0.00583, allocations: 54.47 kB / 1.004 GB, free: 8.645 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.732e-05/0.005887, allocations: 28.84 kB / 1.004 GB, free: 8.613 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 2.138e-05/0.005909, allocations: 7.984 kB / 1.004 GB, free: 8.605 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001575/0.006066, allocations: 122.9 kB / 1.004 GB, free: 8.461 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=11): time 1.353e-06/0.006067, allocations: 4 kB / 1.004 GB, free: 8.457 MB / 0.9636 GB Notification: Performance of matching and sorting (n=11): time 0.0003181/0.006386, allocations: 169.6 kB / 1.005 GB, free: 8.285 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.006445, allocations: 132.5 kB / 1.005 GB, free: 8.125 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.00658, allocations: 207 kB / 1.005 GB, free: 7.91 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.522e-05/0.006596, allocations: 25.95 kB / 1.005 GB, free: 7.879 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 6.811e-05/0.006664, allocations: 136 kB / 1.005 GB, free: 7.742 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 2.384e-05/0.006688, allocations: 31.7 kB / 1.005 GB, free: 7.711 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.491e-05/0.006733, allocations: 41.7 kB / 1.005 GB, free: 7.664 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.994e-05/0.006822, allocations: 338.7 kB / 1.005 GB, free: 7.324 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.139e-05/0.006894, allocations: 36.03 kB / 1.005 GB, free: 7.289 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001115/0.007005, allocations: 154.4 kB / 1.006 GB, free: 7.086 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001991/0.007204, allocations: 210.3 kB / 1.006 GB, free: 6.828 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.007209, allocations: 7.938 kB / 1.006 GB, free: 6.82 MB / 0.9636 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002362/0.007445, allocations: 201.5 kB / 1.006 GB, free: 6.617 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.007457, allocations: 8 kB / 1.006 GB, free: 6.609 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.007464, allocations: 4 kB / 1.006 GB, free: 6.605 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.007476, allocations: 4 kB / 1.006 GB, free: 6.602 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.125e-05/0.007548, allocations: 39.91 kB / 1.006 GB, free: 6.562 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.355e-06/0.007556, allocations: 7.938 kB / 1.006 GB, free: 6.555 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.418e-05/0.00763, allocations: 23.88 kB / 1.006 GB, free: 6.531 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.007642, allocations: 12 kB / 1.006 GB, free: 6.52 MB / 0.9636 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 7.893e-05/0.007721, allocations: 137.9 kB / 1.006 GB, free: 6.375 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.684e-05/0.007738, allocations: 15.91 kB / 1.006 GB, free: 6.359 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.399e-05/0.007772, allocations: 21.45 kB / 1.006 GB, free: 6.34 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.007775, allocations: 4 kB / 1.006 GB, free: 6.336 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.00778, allocations: 0 / 1.006 GB, free: 6.336 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.007784, allocations: 4 kB / 1.006 GB, free: 6.332 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004589/0.008243, allocations: 488.8 kB / 1.007 GB, free: 5.805 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.008245, allocations: 0 / 1.007 GB, free: 5.805 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.974e-05/0.008305, allocations: 23.92 kB / 1.007 GB, free: 5.781 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.035e-06/0.008308, allocations: 4 kB / 1.007 GB, free: 5.777 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.288e-06/0.008317, allocations: 0 / 1.007 GB, free: 5.777 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.008321, allocations: 7.984 kB / 1.007 GB, free: 5.77 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.008322, allocations: 0 / 1.007 GB, free: 5.77 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002996/0.008621, allocations: 364.1 kB / 1.007 GB, free: 5.391 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 1.814e-05/0.008639, allocations: 11.91 kB / 1.007 GB, free: 5.379 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.797e-05/0.008657, allocations: 12 kB / 1.007 GB, free: 5.367 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.574e-05/0.008743, allocations: 12.02 kB / 1.007 GB, free: 5.355 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.088e-05/0.008784, allocations: 19.92 kB / 1.007 GB, free: 5.336 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.333e-06/0.008791, allocations: 4.062 kB / 1.007 GB, free: 5.332 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 7.466e-05/0.008866, allocations: 140.4 kB / 1.007 GB, free: 5.195 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.008866, allocations: 0 / 1.007 GB, free: 5.195 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002302/0.009096, allocations: 28 kB / 1.007 GB, free: 5.168 MB / 0.9636 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.0004791/0.009575, allocations: 0.8967 MB / 1.008 GB, free: 4.238 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001966/0.009772, allocations: 107.8 kB / 1.008 GB, free: 4.133 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.009774, allocations: 1 kB / 1.008 GB, free: 4.133 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 8.243e-05/0.009856, allocations: 48.45 kB / 1.008 GB, free: 4.086 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/0.01023, allocations: 82.23 kB / 1.008 GB, free: 4.008 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001683/0.01191, allocations: 2.235 MB / 1.011 GB, free: 1.582 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.847e-05/0.01199, allocations: 112.2 kB / 1.011 GB, free: 1.449 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 5.348e-05/0.01205, allocations: 17.48 kB / 1.011 GB, free: 1.434 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.691e-05/0.01211, allocations: 52.48 kB / 1.011 GB, free: 1.383 MB / 0.9636 GB Notification: Performance of SimCode: time 5.81e-07/0.01211, allocations: 0 / 1.011 GB, free: 1.383 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01807/0.03018, allocations: 4.92 MB / 1.016 GB, free: 12.64 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.782/6.813, allocations: 5.406 kB / 1.016 GB, free: 12.64 MB / 0.9792 GB " [Timeout remaining time 293] (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/jenkins/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: 11.024884719401598]