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.001324/0.001324, allocations: 103.7 kB / 16.45 MB, free: 6.445 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.001415/0.001415, allocations: 188.6 kB / 19.4 MB, free: 3.66 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: 225.6 MB / 247.8 MB, free: 3.75 MB / 190.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.685/2.685, allocations: 443.5 MB / 0.7287 GB, free: 14.51 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.002293/0.002293, allocations: 67.89 kB / 1.056 GB, free: 2.492 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3624/0.3647, allocations: 160.7 MB / 1.213 GB, free: 1.465 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003757/0.3684, allocations: 1.825 MB / 1.215 GB, free: 15.62 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001234/0.3697, allocations: 0.5494 MB / 1.215 GB, free: 15.06 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001393/0.3698, allocations: 7.938 kB / 1.215 GB, free: 15.05 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.000146/0.3699, allocations: 23.73 kB / 1.215 GB, free: 15.03 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001033/0.37, allocations: 23.73 kB / 1.215 GB, free: 15.01 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002511/0.3703, allocations: 75.84 kB / 1.215 GB, free: 14.93 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002704/0.3706, allocations: 167.5 kB / 1.216 GB, free: 14.77 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001419/0.3707, allocations: 37.94 kB / 1.216 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.3708, allocations: 51.72 kB / 1.216 GB, free: 14.68 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 9.823e-05/0.3709, allocations: 63.64 kB / 1.216 GB, free: 14.62 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.318e-05/0.371, allocations: 12 kB / 1.216 GB, free: 14.61 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 3.478e-05/0.371, allocations: 12 kB / 1.216 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.283e-05/0.371, allocations: 23.92 kB / 1.216 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.114e-05/0.3711, allocations: 71.58 kB / 1.216 GB, free: 14.5 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000218/0.3713, allocations: 135.2 kB / 1.216 GB, free: 14.37 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3713, allocations: 0 / 1.216 GB, free: 14.37 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.412e-06/0.3713, allocations: 0 / 1.216 GB, free: 14.37 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.247e-06/0.3714, allocations: 0 / 1.216 GB, free: 14.37 MB / 0.9669 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.0009227/0.3723, allocations: 486.5 kB / 1.216 GB, free: 13.84 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.3723, allocations: 8.031 kB / 1.216 GB, free: 13.84 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.813e-05/0.3724, allocations: 42.73 kB / 1.216 GB, free: 13.79 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.892e-05/0.3724, allocations: 20.78 kB / 1.216 GB, free: 13.77 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004474/0.3729, allocations: 240 kB / 1.217 GB, free: 13.49 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.3729, allocations: 4.375 kB / 1.217 GB, free: 13.49 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.633e-05/0.373, allocations: 16.33 kB / 1.217 GB, free: 13.47 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003455/0.3733, allocations: 159.5 kB / 1.217 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.3733, allocations: 3.938 kB / 1.217 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.876e-05/0.3733, allocations: 8 kB / 1.217 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.3733, allocations: 0 / 1.217 GB, free: 13.29 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002385/0.3736, allocations: 71.89 kB / 1.217 GB, free: 13.21 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.3746, allocations: 0.7317 MB / 1.218 GB, free: 12.42 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001523/0.3748, allocations: 46.55 kB / 1.218 GB, free: 12.36 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001271/0.3749, allocations: 36.84 kB / 1.218 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.3749, allocations: 4.141 kB / 1.218 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002606/0.3752, allocations: 130.7 kB / 1.218 GB, free: 12.17 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=11): time 1.232e-06/0.3752, allocations: 0 / 1.218 GB, free: 12.17 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0005189/0.3757, allocations: 165.4 kB / 1.218 GB, free: 12 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.779e-05/0.3758, allocations: 128.5 kB / 1.218 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000215/0.376, allocations: 215.1 kB / 1.218 GB, free: 11.62 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.982e-05/0.376, allocations: 25.7 kB / 1.218 GB, free: 11.59 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.3761, allocations: 135.9 kB / 1.218 GB, free: 11.46 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.647e-05/0.3762, allocations: 27.75 kB / 1.219 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.38e-05/0.3762, allocations: 45.66 kB / 1.219 GB, free: 11.38 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001784/0.3764, allocations: 330.8 kB / 1.219 GB, free: 11.05 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.3765, allocations: 35.97 kB / 1.219 GB, free: 11.01 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002134/0.3768, allocations: 150.5 kB / 1.219 GB, free: 10.81 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003588/0.3771, allocations: 206.5 kB / 1.219 GB, free: 10.56 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3771, allocations: 0 / 1.219 GB, free: 10.56 MB / 0.9669 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004301/0.3776, allocations: 205.5 kB / 1.219 GB, free: 10.35 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.3776, allocations: 8 kB / 1.219 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/0.3776, allocations: 4 kB / 1.219 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.3776, allocations: 4 kB / 1.219 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.3777, allocations: 39.91 kB / 1.219 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.3777, allocations: 4 kB / 1.219 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001528/0.3779, allocations: 23.88 kB / 1.22 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.023e-05/0.3779, allocations: 19.94 kB / 1.22 GB, free: 10.25 MB / 0.9669 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.000133/0.3781, allocations: 135.9 kB / 1.22 GB, free: 10.11 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.324e-05/0.3781, allocations: 15.91 kB / 1.22 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.481e-05/0.3781, allocations: 25.39 kB / 1.22 GB, free: 10.07 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.3781, allocations: 3.938 kB / 1.22 GB, free: 10.06 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3781, allocations: 0 / 1.22 GB, free: 10.06 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.3782, allocations: 4 kB / 1.22 GB, free: 10.06 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008338/0.379, allocations: 0.5132 MB / 1.22 GB, free: 9.488 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.379, allocations: 3.938 kB / 1.22 GB, free: 9.484 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.3791, allocations: 15.98 kB / 1.22 GB, free: 9.469 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.895e-06/0.3791, allocations: 4 kB / 1.22 GB, free: 9.465 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.3791, allocations: 4 kB / 1.22 GB, free: 9.461 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.885e-06/0.3791, allocations: 11.92 kB / 1.22 GB, free: 9.449 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.3791, allocations: 4.25 kB / 1.22 GB, free: 9.445 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005385/0.3797, allocations: 358.6 kB / 1.221 GB, free: 9.074 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.546e-05/0.3798, allocations: 93.02 kB / 1.221 GB, free: 8.965 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.924e-05/0.3798, allocations: 8 kB / 1.221 GB, free: 8.957 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001712/0.38, allocations: 19.92 kB / 1.221 GB, free: 8.938 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.613e-05/0.38, allocations: 15.92 kB / 1.221 GB, free: 8.922 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.778e-06/0.38, allocations: 4 kB / 1.221 GB, free: 8.918 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001358/0.3802, allocations: 148.2 kB / 1.221 GB, free: 8.773 MB / 0.9669 GB Notification: Performance of sort global known variables: time 8e-08/0.3802, allocations: 0 / 1.221 GB, free: 8.773 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0003706/0.3805, allocations: 27.98 kB / 1.221 GB, free: 8.746 MB / 0.9669 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.0009136/0.3814, allocations: 0.9005 MB / 1.222 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003332/0.3818, allocations: 115.8 kB / 1.222 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3818, allocations: 0 / 1.222 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001425/0.3819, allocations: 43.91 kB / 1.222 GB, free: 7.656 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005849/0.3825, allocations: 73.88 kB / 1.222 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003009/0.3855, allocations: 2.285 MB / 1.224 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.3859, allocations: 0.7203 MB / 1.225 GB, free: 4.371 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 9.501e-05/0.386, allocations: 21.53 kB / 1.225 GB, free: 4.348 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.32e-05/0.3861, allocations: 47.42 kB / 1.225 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of SimCode: time 7.81e-07/0.3861, allocations: 4 kB / 1.225 GB, free: 4.297 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0276/0.4137, allocations: 4.051 MB / 1.229 GB, free: 372 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.359/8.773, allocations: 9.484 kB / 1.229 GB, free: 368 kB / 0.9669 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: 14.855048124212772]