Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001246/0.001246, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001512/0.001512, allocations: 218.7 kB / 22.25 MB, free: 5.102 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.501/1.501, allocations: 230.6 MB / 256 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.409/3.409, allocations: 0.49 GB / 0.7951 GB, free: 35.42 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_12_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.002094/0.002094, allocations: 70.7 kB / 1.154 GB, free: 25.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3704/0.3725, allocations: 176.1 MB / 1.326 GB, free: 1.512 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003054/0.3756, allocations: 1.792 MB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001097/0.3767, allocations: 0.5494 MB / 1.328 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.306e-05/0.3768, allocations: 7.938 kB / 1.328 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001359/0.3769, allocations: 19.73 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 8.26e-05/0.377, allocations: 31.72 kB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002044/0.3772, allocations: 67.81 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0003016/0.3775, allocations: 171.5 kB / 1.328 GB, free: 14.87 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.3776, allocations: 45.84 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.377e-05/0.3777, allocations: 59.72 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 8.801e-05/0.3778, allocations: 63.64 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.362e-05/0.3779, allocations: 8 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 2.242e-05/0.3779, allocations: 12 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.862e-05/0.3779, allocations: 23.92 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.951e-05/0.378, allocations: 59.66 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0001879/0.3782, allocations: 127.3 kB / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.3782, allocations: 0 / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3782, allocations: 0 / 1.329 GB, free: 14.47 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.052e-06/0.3782, allocations: 0 / 1.329 GB, free: 14.47 MB / 1.029 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.0007886/0.379, allocations: 448.2 kB / 1.329 GB, free: 14 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.379, allocations: 8.031 kB / 1.329 GB, free: 13.99 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.572e-05/0.3791, allocations: 42.75 kB / 1.329 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.323e-05/0.3791, allocations: 20.83 kB / 1.329 GB, free: 13.92 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003022/0.3794, allocations: 178.7 kB / 1.329 GB, free: 13.72 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.3794, allocations: 8.375 kB / 1.329 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.323e-05/0.3795, allocations: 16.36 kB / 1.329 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003098/0.3798, allocations: 158 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.679e-06/0.3798, allocations: 0 / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.3798, allocations: 0 / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.3798, allocations: 4 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000252/0.38, allocations: 71.88 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009555/0.381, allocations: 0.6839 MB / 1.33 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001545/0.3812, allocations: 54.55 kB / 1.33 GB, free: 12.64 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.3813, allocations: 28.78 kB / 1.33 GB, free: 12.61 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.3813, allocations: 7.984 kB / 1.33 GB, free: 12.6 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002552/0.3815, allocations: 126.7 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.363e-06/0.3815, allocations: 0 / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0004922/0.382, allocations: 165.6 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.535e-05/0.3821, allocations: 132.5 kB / 1.331 GB, free: 12.12 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001988/0.3823, allocations: 203 kB / 1.331 GB, free: 11.91 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.652e-05/0.3823, allocations: 29.7 kB / 1.331 GB, free: 11.88 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.475e-05/0.3824, allocations: 131.9 kB / 1.331 GB, free: 11.75 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 3.392e-05/0.3825, allocations: 27.98 kB / 1.331 GB, free: 11.72 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.756e-05/0.3825, allocations: 45.7 kB / 1.331 GB, free: 11.67 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3827, allocations: 330.8 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.3828, allocations: 39.97 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.383, allocations: 151.6 kB / 1.332 GB, free: 11.1 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003286/0.3833, allocations: 202.3 kB / 1.332 GB, free: 10.85 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3833, allocations: 4 kB / 1.332 GB, free: 10.84 MB / 1.029 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004077/0.3838, allocations: 205.4 kB / 1.332 GB, free: 10.64 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.3838, allocations: 13.97 kB / 1.332 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.3838, allocations: 4 kB / 1.332 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.3838, allocations: 4.5 kB / 1.332 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001446/0.3839, allocations: 43.91 kB / 1.332 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.3839, allocations: 7.938 kB / 1.332 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001468/0.3841, allocations: 27.88 kB / 1.332 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.419e-05/0.3841, allocations: 8 kB / 1.332 GB, free: 10.53 MB / 1.029 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.0001198/0.3842, allocations: 143.5 kB / 1.332 GB, free: 10.38 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.94e-05/0.3843, allocations: 15.91 kB / 1.332 GB, free: 10.37 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.667e-05/0.3843, allocations: 25.39 kB / 1.332 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.3843, allocations: 240 / 1.332 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.3843, allocations: 0 / 1.332 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.3843, allocations: 8 kB / 1.332 GB, free: 10.33 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007757/0.3851, allocations: 480.7 kB / 1.333 GB, free: 9.812 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.3851, allocations: 0 / 1.333 GB, free: 9.812 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001214/0.3852, allocations: 19.92 kB / 1.333 GB, free: 9.793 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.3852, allocations: 4 kB / 1.333 GB, free: 9.789 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.3852, allocations: 4 kB / 1.333 GB, free: 9.785 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.3852, allocations: 7.938 kB / 1.333 GB, free: 9.777 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3853, allocations: 0 / 1.333 GB, free: 9.777 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000529/0.3858, allocations: 368.2 kB / 1.333 GB, free: 9.395 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.681e-05/0.3858, allocations: 15.84 kB / 1.333 GB, free: 9.379 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.148e-05/0.3858, allocations: 8 kB / 1.333 GB, free: 9.371 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.386, allocations: 19.95 kB / 1.333 GB, free: 9.352 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.579e-05/0.3861, allocations: 11.98 kB / 1.333 GB, free: 9.34 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.086e-05/0.3861, allocations: 4 kB / 1.333 GB, free: 9.336 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001344/0.3862, allocations: 140.4 kB / 1.334 GB, free: 9.199 MB / 1.029 GB Notification: Performance of sort global known variables: time 9e-08/0.3862, allocations: 4 kB / 1.334 GB, free: 9.195 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003449/0.3866, allocations: 28 kB / 1.334 GB, free: 9.168 MB / 1.029 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.0009078/0.3875, allocations: 0.8975 MB / 1.334 GB, free: 8.238 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003662/0.3878, allocations: 112.1 kB / 1.335 GB, free: 8.129 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3878, allocations: 0 / 1.335 GB, free: 8.129 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.388, allocations: 47.91 kB / 1.335 GB, free: 8.082 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005856/0.3886, allocations: 77.38 kB / 1.335 GB, free: 8.008 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002735/0.3913, allocations: 2.27 MB / 1.337 GB, free: 5.555 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001099/0.3914, allocations: 112.1 kB / 1.337 GB, free: 5.418 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.88e-05/0.3915, allocations: 21.89 kB / 1.337 GB, free: 5.398 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001089/0.3916, allocations: 51.41 kB / 1.337 GB, free: 5.348 MB / 1.029 GB Notification: Performance of SimCode: time 3.41e-07/0.3916, allocations: 4 kB / 1.337 GB, free: 5.344 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03198/0.4236, allocations: 4.807 MB / 1.342 GB, free: 0.7188 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.24/11.67, allocations: 11.16 kB / 1.342 GB, free: 0.7109 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.661014112993143]