Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001252/0.001252, allocations: 79.5 kB / 19.76 MB, free: 2.031 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.001306/0.001306, allocations: 158.9 kB / 23.01 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.324/1.324, allocations: 177.2 MB / 203.4 MB, free: 8.941 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002348/0.002348, allocations: 240.7 kB / 260 MB, free: 432 kB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.8802/0.8802, allocations: 138.5 MB / 455 MB, free: 15.07 MB / 430.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") [Timeout 660] "Notification: NcDataReader2 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: BuildingSystems 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.002947/0.002947, allocations: 91.86 kB / 0.6473 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3778/0.3807, allocations: 95.35 MB / 0.7405 GB, free: 17.43 MB / 0.5919 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.002473/0.3832, allocations: 1.813 MB / 0.7422 GB, free: 16.2 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.0008253/0.384, allocations: 0.5448 MB / 0.7428 GB, free: 15.83 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.386e-05/0.3841, allocations: 6.281 kB / 0.7428 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0001133/0.3843, allocations: 25.94 kB / 0.7428 GB, free: 15.8 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 6.455e-05/0.3843, allocations: 29.98 kB / 0.7428 GB, free: 15.78 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001867/0.3845, allocations: 68.88 kB / 0.7429 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0001975/0.3847, allocations: 171.1 kB / 0.7431 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001256/0.3848, allocations: 40.58 kB / 0.7431 GB, free: 15.64 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 7.011e-05/0.3849, allocations: 53.95 kB / 0.7431 GB, free: 15.61 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 6.944e-05/0.385, allocations: 52.97 kB / 0.7432 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 2.869e-05/0.385, allocations: 10.75 kB / 0.7432 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 1.996e-05/0.385, allocations: 9.75 kB / 0.7432 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 3.03e-05/0.385, allocations: 26.62 kB / 0.7432 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 5.059e-05/0.3851, allocations: 58.98 kB / 0.7433 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0001484/0.3852, allocations: 134.9 kB / 0.7434 GB, free: 15.47 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3852, allocations: 4 kB / 0.7434 GB, free: 15.47 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.113e-06/0.3852, allocations: 0 / 0.7434 GB, free: 15.47 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 4.869e-06/0.3853, allocations: 0 / 0.7434 GB, free: 15.47 MB / 0.5919 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.0005813/0.3858, allocations: 426 kB / 0.7438 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 2.92e-05/0.3859, allocations: 9.906 kB / 0.7438 GB, free: 15.11 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.164e-05/0.3859, allocations: 23.52 kB / 0.7439 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002164/0.3861, allocations: 178.5 kB / 0.744 GB, free: 14.94 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.3861, allocations: 8.531 kB / 0.744 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.82e-05/0.3862, allocations: 12.92 kB / 0.7441 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000257/0.3864, allocations: 157.9 kB / 0.7442 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.3864, allocations: 0.75 kB / 0.7442 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.3864, allocations: 1.312 kB / 0.7442 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.961e-06/0.3864, allocations: 3.719 kB / 0.7442 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000215/0.3867, allocations: 79.92 kB / 0.7443 GB, free: 14.79 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006361/0.3873, allocations: 0.6541 MB / 0.7449 GB, free: 14.2 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001384/0.3874, allocations: 51.3 kB / 0.745 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.78e-05/0.3875, allocations: 30.69 kB / 0.745 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.3876, allocations: 1.406 kB / 0.745 GB, free: 14.15 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001909/0.3877, allocations: 124.6 kB / 0.7451 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=11): time 1.252e-06/0.3877, allocations: 0 / 0.7451 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of matching and sorting (n=11): time 0.0004365/0.3882, allocations: 169 kB / 0.7453 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.026e-05/0.3882, allocations: 131.8 kB / 0.7454 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.3883, allocations: 184.3 kB / 0.7456 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.192e-05/0.3883, allocations: 31.08 kB / 0.7456 GB, free: 13.66 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 5e-05/0.3884, allocations: 126 kB / 0.7457 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 2.539e-05/0.3884, allocations: 48.64 kB / 0.7458 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.724e-05/0.3885, allocations: 41.77 kB / 0.7458 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 4.114e-05/0.3885, allocations: 327.7 kB / 0.7461 GB, free: 13.16 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001143/0.3886, allocations: 39.69 kB / 0.7462 GB, free: 13.15 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001333/0.3888, allocations: 145.6 kB / 0.7463 GB, free: 13 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002447/0.389, allocations: 208.6 kB / 0.7465 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.389, allocations: 1.375 kB / 0.7465 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003412/0.3893, allocations: 203.7 kB / 0.7467 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.199e-05/0.3894, allocations: 6.875 kB / 0.7467 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3894, allocations: 4.734 kB / 0.7467 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.3894, allocations: 8.062 kB / 0.7467 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.3895, allocations: 30.28 kB / 0.7468 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.667e-06/0.3895, allocations: 10.23 kB / 0.7468 GB, free: 12.71 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000135/0.3896, allocations: 28.38 kB / 0.7468 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.3897, allocations: 12.23 kB / 0.7468 GB, free: 12.7 MB / 0.5919 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 6.588e-05/0.3897, allocations: 142.3 kB / 0.7469 GB, free: 12.56 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.415e-05/0.3897, allocations: 21.38 kB / 0.747 GB, free: 12.55 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.441e-05/0.3898, allocations: 20.25 kB / 0.747 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.3898, allocations: 2.656 kB / 0.747 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3898, allocations: 1.312 kB / 0.747 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.3898, allocations: 2.016 kB / 0.747 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005738/0.3904, allocations: 453.9 kB / 0.7474 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3904, allocations: 1.5 kB / 0.7474 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001114/0.3905, allocations: 24.09 kB / 0.7474 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.3905, allocations: 1.812 kB / 0.7474 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.3905, allocations: 2.422 kB / 0.7474 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.3905, allocations: 6.562 kB / 0.7475 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3905, allocations: 1.75 kB / 0.7475 GB, free: 12.17 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003968/0.3909, allocations: 369.8 kB / 0.7478 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 2.266e-05/0.3909, allocations: 15 kB / 0.7478 GB, free: 11.89 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.135e-05/0.3909, allocations: 6.156 kB / 0.7478 GB, free: 11.88 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001667/0.3911, allocations: 20.27 kB / 0.7478 GB, free: 11.88 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.959e-05/0.3912, allocations: 13.66 kB / 0.7479 GB, free: 11.87 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-06/0.3912, allocations: 6.391 kB / 0.7479 GB, free: 11.87 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 7.149e-05/0.3912, allocations: 134 kB / 0.748 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/0.3912, allocations: 0 / 0.748 GB, free: 11.78 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0003178/0.3916, allocations: 26.75 kB / 0.748 GB, free: 11.77 MB / 0.5919 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 7.773e-05/0.3916, allocations: 106 kB / 0.7481 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0002936/0.3919, allocations: 115.6 kB / 0.7482 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.3919, allocations: 0 / 0.7482 GB, free: 11.64 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001322/0.3921, allocations: 51.12 kB / 0.7483 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000517/0.3926, allocations: 58.58 kB / 0.7483 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004477/0.393, allocations: 362.4 kB / 0.7487 GB, free: 11.34 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.268e-05/0.3931, allocations: 109.7 kB / 0.7488 GB, free: 11.26 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 6.139e-05/0.3932, allocations: 23.03 kB / 0.7488 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.699e-05/0.3932, allocations: 19.22 kB / 0.7488 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of SimCode: time 3.31e-07/0.3932, allocations: 0 / 0.7488 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of Templates: time 0.00507/0.3983, allocations: 2.134 MB / 0.7509 GB, free: 10.98 MB / 0.5919 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -s ida -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.384880512952805] Failed to read output from testmodel.py, exit status != 0: 0.4058178879786283 0.41577783199999996 0.028310569 Calling exit ...