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.001798/0.001798, allocations: 114.8 kB / 17.16 MB, free: 5.895 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.002355/0.002355, allocations: 210.2 kB / 20.13 MB, free: 2.949 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.558/1.558, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.117/3.117, allocations: 0.49 GB / 0.7923 GB, free: 1.32 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="cs",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.002033/0.002033, allocations: 75.89 kB / 1.15 GB, free: 15.36 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1/1.002, allocations: 176.1 MB / 1.321 GB, free: 24.93 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002908/1.005, allocations: 1.84 MB / 1.323 GB, free: 23.63 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009198/1.006, allocations: 0.5892 MB / 1.324 GB, free: 23.22 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.924e-05/1.006, allocations: 6.594 kB / 1.324 GB, free: 23.21 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001435/1.006, allocations: 18.84 kB / 1.324 GB, free: 23.2 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.786e-05/1.006, allocations: 29.56 kB / 1.324 GB, free: 23.18 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002275/1.006, allocations: 67.16 kB / 1.324 GB, free: 23.14 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000205/1.007, allocations: 171.5 kB / 1.324 GB, free: 23.06 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001384/1.007, allocations: 44.05 kB / 1.324 GB, free: 23.04 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 7.718e-05/1.007, allocations: 53.47 kB / 1.324 GB, free: 23.01 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 7.018e-05/1.007, allocations: 62.81 kB / 1.324 GB, free: 22.98 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.601e-05/1.007, allocations: 11.09 kB / 1.324 GB, free: 22.98 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 1.937e-05/1.007, allocations: 10.59 kB / 1.324 GB, free: 22.98 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.468e-05/1.007, allocations: 32.55 kB / 1.324 GB, free: 22.95 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.97e-05/1.007, allocations: 63.88 kB / 1.324 GB, free: 22.91 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001714/1.007, allocations: 131.2 kB / 1.325 GB, free: 22.85 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.561e-06/1.007, allocations: 0 / 1.325 GB, free: 22.85 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.422e-06/1.007, allocations: 0 / 1.325 GB, free: 22.85 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.123e-06/1.007, allocations: 7.875 kB / 1.325 GB, free: 22.84 MB / 1.061 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.0007141/1.008, allocations: 487.2 kB / 1.325 GB, free: 22.4 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/1.008, allocations: 14.36 kB / 1.325 GB, free: 22.4 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.984e-05/1.008, allocations: 3.406 kB / 1.325 GB, free: 22.4 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.088e-05/1.008, allocations: 40.84 kB / 1.325 GB, free: 22.36 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.154e-05/1.008, allocations: 17.53 kB / 1.325 GB, free: 22.35 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002836/1.008, allocations: 246.9 kB / 1.325 GB, free: 22.11 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/1.008, allocations: 6.281 kB / 1.325 GB, free: 22.11 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.084e-05/1.008, allocations: 13.61 kB / 1.325 GB, free: 22.1 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002761/1.009, allocations: 152.9 kB / 1.325 GB, free: 22 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/1.009, allocations: 0 / 1.325 GB, free: 22 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/1.009, allocations: 7.125 kB / 1.325 GB, free: 21.99 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/1.009, allocations: 6.812 kB / 1.325 GB, free: 21.99 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002203/1.009, allocations: 70.78 kB / 1.326 GB, free: 21.97 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000729/1.01, allocations: 0.7349 MB / 1.326 GB, free: 21.3 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001342/1.01, allocations: 42.89 kB / 1.326 GB, free: 21.27 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.894e-05/1.01, allocations: 35.39 kB / 1.326 GB, free: 21.26 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/1.01, allocations: 7.875 kB / 1.326 GB, free: 21.25 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001984/1.01, allocations: 123.7 kB / 1.326 GB, free: 21.15 MB / 1.061 GB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/1.01, allocations: 0 / 1.326 GB, free: 21.15 MB / 1.061 GB Notification: Performance of matching and sorting (n=11): time 0.0004412/1.011, allocations: 172.2 kB / 1.327 GB, free: 21.07 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.659e-05/1.011, allocations: 134.8 kB / 1.327 GB, free: 20.92 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/1.011, allocations: 196.9 kB / 1.327 GB, free: 20.79 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.536e-05/1.011, allocations: 28.89 kB / 1.327 GB, free: 20.75 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.152e-05/1.011, allocations: 127.2 kB / 1.327 GB, free: 20.64 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.847e-05/1.011, allocations: 41.92 kB / 1.327 GB, free: 20.61 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.948e-05/1.011, allocations: 41.91 kB / 1.327 GB, free: 20.58 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.493e-05/1.011, allocations: 332.1 kB / 1.327 GB, free: 20.25 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/1.011, allocations: 39.52 kB / 1.328 GB, free: 20.24 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001448/1.011, allocations: 155.2 kB / 1.328 GB, free: 20.08 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003133/1.012, allocations: 202.9 kB / 1.328 GB, free: 19.89 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.919e-06/1.012, allocations: 1.625 kB / 1.328 GB, free: 19.89 MB / 1.061 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004189/1.012, allocations: 202.3 kB / 1.328 GB, free: 19.8 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/1.012, allocations: 6.406 kB / 1.328 GB, free: 19.8 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/1.012, allocations: 3.719 kB / 1.328 GB, free: 19.8 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/1.012, allocations: 5 kB / 1.328 GB, free: 19.8 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/1.012, allocations: 38.89 kB / 1.328 GB, free: 19.79 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.414e-05/1.012, allocations: 9.406 kB / 1.328 GB, free: 19.79 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001471/1.012, allocations: 31.16 kB / 1.328 GB, free: 19.78 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/1.012, allocations: 12.06 kB / 1.328 GB, free: 19.77 MB / 1.061 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 9.111e-05/1.012, allocations: 135.5 kB / 1.328 GB, free: 19.64 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.449e-05/1.012, allocations: 16.94 kB / 1.328 GB, free: 19.63 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.514e-05/1.013, allocations: 25.78 kB / 1.328 GB, free: 19.61 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/1.013, allocations: 2.688 kB / 1.328 GB, free: 19.61 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/1.013, allocations: 1.438 kB / 1.328 GB, free: 19.61 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/1.013, allocations: 1.125 kB / 1.328 GB, free: 19.61 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006718/1.013, allocations: 0.5118 MB / 1.329 GB, free: 19.18 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/1.013, allocations: 0.5938 kB / 1.329 GB, free: 19.18 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000116/1.013, allocations: 15.45 kB / 1.329 GB, free: 19.18 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/1.013, allocations: 1.688 kB / 1.329 GB, free: 19.18 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.672e-05/1.013, allocations: 10.56 kB / 1.329 GB, free: 19.18 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/1.013, allocations: 8.844 kB / 1.329 GB, free: 19.17 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.716e-06/1.013, allocations: 4.438 kB / 1.329 GB, free: 19.17 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004609/1.014, allocations: 355.4 kB / 1.329 GB, free: 18.9 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.882e-05/1.014, allocations: 101.2 kB / 1.329 GB, free: 18.79 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.533e-05/1.014, allocations: 6.25 kB / 1.329 GB, free: 18.79 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001691/1.014, allocations: 14.09 kB / 1.329 GB, free: 18.78 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.753e-05/1.014, allocations: 16.47 kB / 1.329 GB, free: 18.78 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/1.014, allocations: 8.375 kB / 1.329 GB, free: 18.77 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001033/1.014, allocations: 140.8 kB / 1.329 GB, free: 18.68 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/1.014, allocations: 0 / 1.329 GB, free: 18.68 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003424/1.015, allocations: 27.06 kB / 1.33 GB, free: 18.68 MB / 1.061 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.000658/1.015, allocations: 0.904 MB / 1.33 GB, free: 17.87 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003385/1.016, allocations: 109.9 kB / 1.331 GB, free: 17.84 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/1.016, allocations: 1.562 kB / 1.331 GB, free: 17.84 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001466/1.016, allocations: 50.67 kB / 1.331 GB, free: 17.82 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005661/1.016, allocations: 77.03 kB / 1.331 GB, free: 17.79 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002547/1.019, allocations: 2.262 MB / 1.333 GB, free: 15.93 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002344/1.019, allocations: 0.7256 MB / 1.334 GB, free: 15.23 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 9.622e-05/1.019, allocations: 21.39 kB / 1.334 GB, free: 15.22 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.541e-05/1.019, allocations: 48.67 kB / 1.334 GB, free: 15.18 MB / 1.061 GB Notification: Performance of SimCode: time 6.52e-07/1.019, allocations: 5.188 kB / 1.334 GB, free: 15.18 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02625/1.045, allocations: 4.086 MB / 1.338 GB, free: 14.6 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.492/9.537, allocations: 20.42 kB / 1.338 GB, free: 14.59 MB / 1.061 GB " [Timeout remaining time 290] (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: 16.55220235604793]