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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001685/0.00169, allocations: 106.2 kB / 16.4 MB, free: 6.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001786/0.001786, allocations: 192.6 kB / 19.36 MB, free: 3.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 222.9 MB / 245.1 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.608/2.608, allocations: 437.1 MB / 0.7171 GB, free: 4.086 MB / 0.5762 GB " [Timeout remaining time 177] 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.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"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002012/0.002012, allocations: 63.91 kB / 1.027 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8431/0.8451, allocations: 151.6 MB / 1.175 GB, free: 17.48 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003643/0.8488, allocations: 1.814 MB / 1.176 GB, free: 16.21 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001045/0.8499, allocations: 0.5461 MB / 1.177 GB, free: 15.82 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.85, allocations: 6.75 kB / 1.177 GB, free: 15.82 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.8502, allocations: 22.2 kB / 1.177 GB, free: 15.8 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.943e-05/0.8503, allocations: 20.56 kB / 1.177 GB, free: 15.79 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002489/0.8505, allocations: 68.89 kB / 1.177 GB, free: 15.75 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002535/0.8508, allocations: 174.8 kB / 1.177 GB, free: 15.67 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.851, allocations: 49.3 kB / 1.177 GB, free: 15.65 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 8.995e-05/0.8511, allocations: 57.41 kB / 1.177 GB, free: 15.62 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 9.158e-05/0.8512, allocations: 57.28 kB / 1.177 GB, free: 15.59 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.899e-05/0.8512, allocations: 10.09 kB / 1.177 GB, free: 15.59 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 2.494e-05/0.8512, allocations: 11.06 kB / 1.177 GB, free: 15.59 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.979e-05/0.8513, allocations: 28.75 kB / 1.177 GB, free: 15.57 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.04e-05/0.8514, allocations: 68.75 kB / 1.178 GB, free: 15.52 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002174/0.8516, allocations: 140 kB / 1.178 GB, free: 15.45 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.8516, allocations: 0 / 1.178 GB, free: 15.45 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.844e-06/0.8516, allocations: 0 / 1.178 GB, free: 15.45 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.943e-06/0.8516, allocations: 1.344 kB / 1.178 GB, free: 15.45 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006694/0.8523, allocations: 476.2 kB / 1.178 GB, free: 15.02 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.8523, allocations: 10.34 kB / 1.178 GB, free: 15.02 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.056e-05/0.8524, allocations: 45.25 kB / 1.178 GB, free: 14.97 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.545e-05/0.8524, allocations: 22.66 kB / 1.178 GB, free: 14.96 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003183/0.8528, allocations: 232.6 kB / 1.178 GB, free: 14.73 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.566e-05/0.8528, allocations: 9.344 kB / 1.178 GB, free: 14.73 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.693e-05/0.8528, allocations: 13.62 kB / 1.178 GB, free: 14.73 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002887/0.8531, allocations: 164.2 kB / 1.179 GB, free: 14.61 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.8531, allocations: 1.062 kB / 1.179 GB, free: 14.61 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.8532, allocations: 1.75 kB / 1.179 GB, free: 14.61 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.8532, allocations: 3.406 kB / 1.179 GB, free: 14.61 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002375/0.8534, allocations: 74.31 kB / 1.179 GB, free: 14.59 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00081/0.8542, allocations: 0.7334 MB / 1.179 GB, free: 13.92 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001531/0.8544, allocations: 57.52 kB / 1.179 GB, free: 13.88 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.8545, allocations: 46.09 kB / 1.179 GB, free: 13.86 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.8545, allocations: 1.062 kB / 1.179 GB, free: 13.86 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002146/0.8548, allocations: 122.6 kB / 1.18 GB, free: 13.76 MB / 0.92 GB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/0.8548, allocations: 0 / 1.18 GB, free: 13.76 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0005013/0.8553, allocations: 169.6 kB / 1.18 GB, free: 13.68 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.29e-05/0.8553, allocations: 132.4 kB / 1.18 GB, free: 13.53 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001772/0.8555, allocations: 198.9 kB / 1.18 GB, free: 13.39 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.8556, allocations: 32.56 kB / 1.18 GB, free: 13.36 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.019e-05/0.8556, allocations: 134.5 kB / 1.18 GB, free: 13.24 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.369e-05/0.8557, allocations: 35.31 kB / 1.18 GB, free: 13.21 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.197e-05/0.8557, allocations: 47.59 kB / 1.18 GB, free: 13.18 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.933e-05/0.8558, allocations: 328.7 kB / 1.181 GB, free: 12.86 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.856, allocations: 37.19 kB / 1.181 GB, free: 12.85 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001644/0.8561, allocations: 144.3 kB / 1.181 GB, free: 12.7 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002876/0.8564, allocations: 205.9 kB / 1.181 GB, free: 12.51 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.079e-06/0.8564, allocations: 1.891 kB / 1.181 GB, free: 12.51 MB / 0.92 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000401/0.8569, allocations: 208.6 kB / 1.181 GB, free: 12.41 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.8569, allocations: 10.22 kB / 1.181 GB, free: 12.41 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.8569, allocations: 3.969 kB / 1.181 GB, free: 12.41 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.085e-05/0.8569, allocations: 10.39 kB / 1.181 GB, free: 12.4 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.8571, allocations: 28.17 kB / 1.181 GB, free: 12.4 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.242e-05/0.8571, allocations: 10.45 kB / 1.181 GB, free: 12.4 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001466/0.8572, allocations: 28.61 kB / 1.181 GB, free: 12.39 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/0.8573, allocations: 9 kB / 1.181 GB, free: 12.39 MB / 0.92 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.665e-05/0.8573, allocations: 136.5 kB / 1.181 GB, free: 12.25 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.914e-05/0.8574, allocations: 17.41 kB / 1.181 GB, free: 12.25 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.867e-05/0.8574, allocations: 25.36 kB / 1.181 GB, free: 12.22 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.8574, allocations: 5.438 kB / 1.181 GB, free: 12.22 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.8575, allocations: 1.969 kB / 1.181 GB, free: 12.22 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.8575, allocations: 1.969 kB / 1.181 GB, free: 12.22 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006963/0.8582, allocations: 0.51 MB / 1.182 GB, free: 11.79 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-06/0.8582, allocations: 1.375 kB / 1.182 GB, free: 11.79 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.8583, allocations: 24.42 kB / 1.182 GB, free: 11.79 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.8583, allocations: 1.438 kB / 1.182 GB, free: 11.79 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.475e-05/0.8583, allocations: 2.109 kB / 1.182 GB, free: 11.79 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.8583, allocations: 7.266 kB / 1.182 GB, free: 11.78 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.8583, allocations: 1.625 kB / 1.182 GB, free: 11.78 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004662/0.8588, allocations: 370.2 kB / 1.182 GB, free: 11.5 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.501e-05/0.8589, allocations: 95.89 kB / 1.182 GB, free: 11.39 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.901e-05/0.8589, allocations: 3.875 kB / 1.182 GB, free: 11.39 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001719/0.8591, allocations: 19.36 kB / 1.182 GB, free: 11.39 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.612e-05/0.8592, allocations: 9.828 kB / 1.183 GB, free: 11.39 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.8592, allocations: 20.44 kB / 1.183 GB, free: 11.37 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0001133/0.8593, allocations: 141.9 kB / 1.183 GB, free: 11.28 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8593, allocations: 0 / 1.183 GB, free: 11.28 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003349/0.8596, allocations: 27.7 kB / 1.183 GB, free: 11.27 MB / 0.92 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.0007162/0.8604, allocations: 0.8988 MB / 1.184 GB, free: 10.47 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.000366/0.8607, allocations: 119.4 kB / 1.184 GB, free: 10.43 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.8608, allocations: 0 / 1.184 GB, free: 10.43 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001588/0.8609, allocations: 48.31 kB / 1.184 GB, free: 10.42 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006173/0.8615, allocations: 57.2 kB / 1.184 GB, free: 10.41 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002551/0.8641, allocations: 2.282 MB / 1.186 GB, free: 8.527 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002064/0.8643, allocations: 0.7236 MB / 1.187 GB, free: 7.828 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.000108/0.8644, allocations: 19.48 kB / 1.187 GB, free: 7.824 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.852e-05/0.8645, allocations: 51.05 kB / 1.187 GB, free: 7.789 MB / 0.92 GB Notification: Performance of SimCode: time 3.51e-07/0.8645, allocations: 0 / 1.187 GB, free: 7.789 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02881/0.8934, allocations: 4.033 MB / 1.191 GB, free: 7.168 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.368/9.261, allocations: 5.875 kB / 1.191 GB, free: 7.164 MB / 0.92 GB " [Timeout remaining time 291] (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 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_10_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 420.0] 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_2/OpenModelicaLibraryTesting/files/Buildings_10_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: 15.049913540948182]