Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001735/0.001735, allocations: 110.7 kB / 17.6 MB, free: 4.688 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.002025/0.002025, allocations: 189.9 kB / 20.78 MB, free: 1.52 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.487/1.487, allocations: 225.6 MB / 249.4 MB, free: 3.156 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.851/2.851, allocations: 476.7 MB / 0.7629 GB, free: 15.09 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 67.89 kB / 1.107 GB, free: 5.008 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.176/1.178, allocations: 168.7 MB / 1.272 GB, free: 7.656 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003148/1.181, allocations: 1.838 MB / 1.273 GB, free: 6.395 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001038/1.182, allocations: 0.5478 MB / 1.274 GB, free: 6.008 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/1.182, allocations: 6.906 kB / 1.274 GB, free: 6.004 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001605/1.183, allocations: 21.92 kB / 1.274 GB, free: 5.988 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 7.621e-05/1.183, allocations: 29.64 kB / 1.274 GB, free: 5.965 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002501/1.183, allocations: 65.67 kB / 1.274 GB, free: 5.934 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002444/1.183, allocations: 170 kB / 1.274 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/1.183, allocations: 45.42 kB / 1.274 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.614e-05/1.183, allocations: 53.27 kB / 1.274 GB, free: 5.805 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 8.98e-05/1.183, allocations: 63.58 kB / 1.274 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.218e-05/1.183, allocations: 10 kB / 1.274 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.557e-05/1.183, allocations: 9.719 kB / 1.274 GB, free: 5.77 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 4.11e-05/1.184, allocations: 28.11 kB / 1.274 GB, free: 5.75 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 7.371e-05/1.184, allocations: 68.22 kB / 1.274 GB, free: 5.703 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002164/1.184, allocations: 132.4 kB / 1.275 GB, free: 5.641 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/1.184, allocations: 0 / 1.275 GB, free: 5.641 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.653e-06/1.184, allocations: 4.781 kB / 1.275 GB, free: 5.637 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.242e-05/1.184, allocations: 0 / 1.275 GB, free: 5.637 MB / 0.9981 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.0006962/1.185, allocations: 484.5 kB / 1.275 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/1.185, allocations: 11.14 kB / 1.275 GB, free: 5.199 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.862e-05/1.185, allocations: 40.06 kB / 1.275 GB, free: 5.156 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.61e-05/1.185, allocations: 18.12 kB / 1.275 GB, free: 5.148 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000313/1.185, allocations: 257.1 kB / 1.275 GB, free: 4.898 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/1.185, allocations: 9.562 kB / 1.275 GB, free: 4.895 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.431e-05/1.185, allocations: 13.39 kB / 1.275 GB, free: 4.891 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002899/1.185, allocations: 152.1 kB / 1.275 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/1.185, allocations: 0 / 1.275 GB, free: 4.785 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/1.185, allocations: 6.094 kB / 1.275 GB, free: 4.781 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.276e-06/1.185, allocations: 8.875 kB / 1.275 GB, free: 4.777 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002499/1.186, allocations: 66.92 kB / 1.276 GB, free: 4.762 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008249/1.186, allocations: 0.7375 MB / 1.276 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000144/1.187, allocations: 43.12 kB / 1.276 GB, free: 4.062 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/1.187, allocations: 37.28 kB / 1.276 GB, free: 4.043 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.64e-05/1.187, allocations: 2.547 kB / 1.276 GB, free: 4.043 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002269/1.187, allocations: 127.5 kB / 1.276 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=11): time 1.413e-06/1.187, allocations: 0 / 1.276 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.000494/1.187, allocations: 163.7 kB / 1.277 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.477e-05/1.187, allocations: 137.9 kB / 1.277 GB, free: 3.711 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001824/1.188, allocations: 203.6 kB / 1.277 GB, free: 3.57 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/1.188, allocations: 27.98 kB / 1.277 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.592e-05/1.188, allocations: 133 kB / 1.277 GB, free: 3.418 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.941e-05/1.188, allocations: 34.83 kB / 1.277 GB, free: 3.391 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.883e-05/1.188, allocations: 45.72 kB / 1.277 GB, free: 3.359 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.939e-05/1.188, allocations: 329.2 kB / 1.277 GB, free: 3.039 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001225/1.188, allocations: 39.62 kB / 1.278 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001573/1.188, allocations: 154.2 kB / 1.278 GB, free: 2.867 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002855/1.188, allocations: 199.1 kB / 1.278 GB, free: 2.684 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/1.188, allocations: 1.875 kB / 1.278 GB, free: 2.684 MB / 0.9981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003943/1.189, allocations: 200.5 kB / 1.278 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/1.189, allocations: 6.625 kB / 1.278 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/1.189, allocations: 4 kB / 1.278 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.353e-05/1.189, allocations: 4.812 kB / 1.278 GB, free: 2.594 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/1.189, allocations: 37.62 kB / 1.278 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/1.189, allocations: 10.81 kB / 1.278 GB, free: 2.582 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001449/1.189, allocations: 31.55 kB / 1.278 GB, free: 2.57 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.761e-05/1.189, allocations: 12.47 kB / 1.278 GB, free: 2.566 MB / 0.9981 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.626e-05/1.189, allocations: 131.5 kB / 1.278 GB, free: 2.438 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.138e-05/1.189, allocations: 20.92 kB / 1.278 GB, free: 2.426 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.732e-05/1.189, allocations: 25.12 kB / 1.278 GB, free: 2.398 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/1.189, allocations: 5.922 kB / 1.278 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/1.189, allocations: 1.25 kB / 1.278 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/1.189, allocations: 2.75 kB / 1.278 GB, free: 2.395 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006742/1.19, allocations: 0.5104 MB / 1.279 GB, free: 1.969 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/1.19, allocations: 1.625 kB / 1.279 GB, free: 1.969 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/1.19, allocations: 21.33 kB / 1.279 GB, free: 1.961 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/1.19, allocations: 6.281 kB / 1.279 GB, free: 1.957 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/1.19, allocations: 7.531 kB / 1.279 GB, free: 1.953 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/1.19, allocations: 5.562 kB / 1.279 GB, free: 1.949 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/1.19, allocations: 5.531 kB / 1.279 GB, free: 1.945 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004544/1.191, allocations: 353.6 kB / 1.279 GB, free: 1.68 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.87e-05/1.191, allocations: 94.44 kB / 1.279 GB, free: 1.574 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.8e-05/1.191, allocations: 7.875 kB / 1.279 GB, free: 1.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/1.191, allocations: 16.16 kB / 1.279 GB, free: 1.566 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.838e-05/1.191, allocations: 13.97 kB / 1.279 GB, free: 1.562 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.047e-05/1.191, allocations: 3.906 kB / 1.279 GB, free: 1.562 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001026/1.191, allocations: 137.3 kB / 1.279 GB, free: 1.473 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6e-08/1.191, allocations: 0 / 1.279 GB, free: 1.473 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003352/1.191, allocations: 31.2 kB / 1.28 GB, free: 1.465 MB / 0.9981 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.000647/1.192, allocations: 0.9007 MB / 1.28 GB, free: 0.6562 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003348/1.192, allocations: 112.1 kB / 1.281 GB, free: 0.625 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/1.192, allocations: 0 / 1.281 GB, free: 0.625 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001472/1.193, allocations: 48.23 kB / 1.281 GB, free: 0.6133 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005592/1.193, allocations: 70.78 kB / 1.281 GB, free: 0.5898 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002877/1.196, allocations: 2.285 MB / 1.283 GB, free: 14.71 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003802/1.196, allocations: 0.7273 MB / 1.284 GB, free: 14 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001006/1.196, allocations: 25.92 kB / 1.284 GB, free: 14 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.891e-05/1.197, allocations: 49.17 kB / 1.284 GB, free: 13.96 MB / 1.014 GB Notification: Performance of SimCode: time 5.71e-07/1.197, allocations: 4 kB / 1.284 GB, free: 13.96 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03096/1.227, allocations: 4.052 MB / 1.288 GB, free: 13.39 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.247/9.475, allocations: 6.312 kB / 1.288 GB, free: 13.39 MB / 1.014 GB " [Timeout remaining time 290] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,cons.y,booleanPulse.y,intWitRes1.y_start,intWitRes1.y_reset,intWitRes1.y,intWitRes2.y_start,intWitRes2.y,intWitRes2.y_reset_in,intNoReset.y_start,intNoReset.y,intDef.y_start,intDef.y Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,cons.k,cons.y,der(intDef.y),der(intNoReset.y),der(intWitRes1.y),der(intWitRes2.y),intDef.initType,intDef.k,intDef.reset,intDef.u,intDef.y,intDef.y_reset,intDef.y_start,intNoReset.initType,intNoReset.k,intNoReset.reset,intNoReset.u,intNoReset.y,intNoReset.y_reset,intNoReset.y_start,intWitRes1.initType,intWitRes1.k,intWitRes1.reset,intWitRes1.trigger,intWitRes1.u,intWitRes1.y,intWitRes1.y_reset,intWitRes1.y_start,intWitRes2.initType,intWitRes2.k,intWitRes2.reset,intWitRes2.trigger,intWitRes2.u,intWitRes2.y,intWitRes2.y_reset,intWitRes2.y_reset_in,intWitRes2.y_start,ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sampleTrigger.period,sampleTrigger.startTime,sampleTrigger.y,time [Calling sys.exit(0), Time elapsed: 15.784682719007833]