Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001704/0.001704, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001752/0.001752, allocations: 213.6 kB / 22.99 MB, free: 4.945 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.451/1.451, allocations: 230.6 MB / 256.8 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.233/3.233, allocations: 0.5107 GB / 0.8166 GB, free: 17.79 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="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",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="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",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset") [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.002017/0.002017, allocations: 62.06 kB / 1.187 GB, free: 13.42 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3247/0.3268, allocations: 181.9 MB / 1.365 GB, free: 13.57 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003138/0.3299, allocations: 1.79 MB / 1.366 GB, free: 11.76 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001086/0.331, allocations: 0.5455 MB / 1.367 GB, free: 11.21 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.78e-05/0.3311, allocations: 3.938 kB / 1.367 GB, free: 11.21 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001342/0.3312, allocations: 35.66 kB / 1.367 GB, free: 11.18 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 6.924e-05/0.3313, allocations: 19.73 kB / 1.367 GB, free: 11.16 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002148/0.3315, allocations: 79.78 kB / 1.367 GB, free: 11.08 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002318/0.3317, allocations: 167.5 kB / 1.367 GB, free: 10.91 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001404/0.3319, allocations: 41.72 kB / 1.367 GB, free: 10.87 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 8.756e-05/0.332, allocations: 55.73 kB / 1.367 GB, free: 10.82 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.018e-05/0.332, allocations: 55.62 kB / 1.367 GB, free: 10.76 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.128e-05/0.3321, allocations: 12 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 2.244e-05/0.3321, allocations: 8 kB / 1.367 GB, free: 10.74 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.516e-05/0.3321, allocations: 31.84 kB / 1.367 GB, free: 10.71 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.66e-05/0.3322, allocations: 51.73 kB / 1.367 GB, free: 10.66 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001907/0.3324, allocations: 135.3 kB / 1.368 GB, free: 10.53 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3324, allocations: 0 / 1.368 GB, free: 10.53 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.312e-06/0.3324, allocations: 3.938 kB / 1.368 GB, free: 10.52 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.46e-06/0.3324, allocations: 0 / 1.368 GB, free: 10.52 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.0007392/0.3331, allocations: 435.1 kB / 1.368 GB, free: 10.06 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.3332, allocations: 12.03 kB / 1.368 GB, free: 10.05 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.655e-05/0.3332, allocations: 16.84 kB / 1.368 GB, free: 10.04 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003057/0.3335, allocations: 178.2 kB / 1.368 GB, free: 9.836 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.3335, allocations: 8.375 kB / 1.368 GB, free: 9.828 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.469e-05/0.3336, allocations: 12.38 kB / 1.368 GB, free: 9.816 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003083/0.3339, allocations: 152.2 kB / 1.368 GB, free: 9.648 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.3339, allocations: 0 / 1.368 GB, free: 9.648 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.84e-05/0.3339, allocations: 8 kB / 1.368 GB, free: 9.641 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3339, allocations: 0 / 1.368 GB, free: 9.641 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002277/0.3341, allocations: 73.42 kB / 1.368 GB, free: 9.57 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008904/0.335, allocations: 0.6533 MB / 1.369 GB, free: 8.871 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001524/0.3352, allocations: 46.55 kB / 1.369 GB, free: 8.816 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.3353, allocations: 40.81 kB / 1.369 GB, free: 8.773 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.847e-05/0.3353, allocations: 3.938 kB / 1.369 GB, free: 8.77 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002343/0.3355, allocations: 118.7 kB / 1.369 GB, free: 8.629 MB / 1.061 GB Notification: Performance of pre-optimization done (n=11): time 1.263e-06/0.3355, allocations: 0 / 1.369 GB, free: 8.629 MB / 1.061 GB Notification: Performance of matching and sorting (n=11): time 0.0005124/0.3361, allocations: 169.6 kB / 1.369 GB, free: 8.457 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.875e-05/0.3361, allocations: 132.5 kB / 1.37 GB, free: 8.297 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001853/0.3363, allocations: 191.8 kB / 1.37 GB, free: 8.102 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/0.3364, allocations: 25.7 kB / 1.37 GB, free: 8.07 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.823e-05/0.3365, allocations: 136 kB / 1.37 GB, free: 7.934 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.956e-05/0.3365, allocations: 35.73 kB / 1.37 GB, free: 7.898 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.739e-05/0.3366, allocations: 41.7 kB / 1.37 GB, free: 7.852 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0002133/0.3368, allocations: 326.8 kB / 1.37 GB, free: 7.523 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.3369, allocations: 39.92 kB / 1.37 GB, free: 7.484 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002281/0.3371, allocations: 155.1 kB / 1.37 GB, free: 7.281 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003328/0.3375, allocations: 198.4 kB / 1.371 GB, free: 7.035 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.3375, allocations: 7.875 kB / 1.371 GB, free: 7.027 MB / 1.061 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004008/0.3379, allocations: 205.5 kB / 1.371 GB, free: 6.82 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.3379, allocations: 8 kB / 1.371 GB, free: 6.812 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.3379, allocations: 4 kB / 1.371 GB, free: 6.809 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.3379, allocations: 4.5 kB / 1.371 GB, free: 6.805 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001271/0.338, allocations: 39.92 kB / 1.371 GB, free: 6.766 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.3381, allocations: 15.91 kB / 1.371 GB, free: 6.75 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001384/0.3382, allocations: 23.94 kB / 1.371 GB, free: 6.727 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.3382, allocations: 8 kB / 1.371 GB, free: 6.719 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 0.0001247/0.3383, allocations: 138.8 kB / 1.371 GB, free: 6.574 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.142e-05/0.3384, allocations: 19.91 kB / 1.371 GB, free: 6.555 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.788e-05/0.3384, allocations: 17.39 kB / 1.371 GB, free: 6.531 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3384, allocations: 4 kB / 1.371 GB, free: 6.527 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3384, allocations: 0 / 1.371 GB, free: 6.527 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.3384, allocations: 4 kB / 1.371 GB, free: 6.523 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007682/0.3392, allocations: 457.2 kB / 1.372 GB, free: 6.039 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.3392, allocations: 0 / 1.372 GB, free: 6.039 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001116/0.3393, allocations: 15.98 kB / 1.372 GB, free: 6.023 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.3393, allocations: 4 kB / 1.372 GB, free: 6.02 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.394e-05/0.3393, allocations: 4 kB / 1.372 GB, free: 6.016 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.3393, allocations: 7.938 kB / 1.372 GB, free: 6.008 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.3393, allocations: 0 / 1.372 GB, free: 6.008 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005238/0.3399, allocations: 364.3 kB / 1.372 GB, free: 5.629 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.068e-05/0.3399, allocations: 19.8 kB / 1.372 GB, free: 5.609 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.453e-05/0.3399, allocations: 7.984 kB / 1.372 GB, free: 5.602 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/0.3401, allocations: 16.34 kB / 1.372 GB, free: 5.586 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.542e-05/0.3402, allocations: 19.92 kB / 1.372 GB, free: 5.566 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.247e-06/0.3402, allocations: 4 kB / 1.372 GB, free: 5.562 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001128/0.3403, allocations: 135.4 kB / 1.372 GB, free: 5.43 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3403, allocations: 4 kB / 1.372 GB, free: 5.426 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003232/0.3406, allocations: 24 kB / 1.372 GB, free: 5.402 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.0001297/0.3407, allocations: 97.75 kB / 1.372 GB, free: 5.301 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003295/0.3411, allocations: 120.7 kB / 1.372 GB, free: 5.184 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.3411, allocations: 4.062 kB / 1.372 GB, free: 5.18 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001493/0.3412, allocations: 47.91 kB / 1.372 GB, free: 5.133 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005462/0.3418, allocations: 69.84 kB / 1.372 GB, free: 5.066 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006521/0.3424, allocations: 386.1 kB / 1.373 GB, free: 4.648 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001131/0.3425, allocations: 112.2 kB / 1.373 GB, free: 4.52 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.992e-05/0.3426, allocations: 19.44 kB / 1.373 GB, free: 4.5 MB / 1.061 GB Notification: Performance of SimCode: time 4.81e-07/0.3426, allocations: 0 / 1.373 GB, free: 4.5 MB / 1.061 GB Notification: Performance of Templates: time 0.004186/0.3468, allocations: 2.154 MB / 1.375 GB, free: 2.355 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 11.252028627786785]