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/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") translateModel(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7666/0.7666, allocations: 140.1 MB / 156 MB, free: 5.164 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009579/0.000958, allocations: 172.7 kB / 188.5 MB, free: 15.83 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.47/1.47, allocations: 205.4 MB / 426.3 MB, free: 8.465 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008262/0.0008262, allocations: 90.36 kB / 0.4945 GB, free: 8.414 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001604/0.001604, allocations: 273.7 kB / 0.5728 GB, free: 66.23 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004499/0.00045, allocations: 20 kB / 0.662 GB, free: 6.812 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3521, allocations: 79.3 MB / 0.7395 GB, free: 46.36 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.148/0.5001, allocations: 109.2 MB / 0.8461 GB, free: 1.012 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000187/0.5003, allocations: 71.97 kB / 0.8462 GB, free: 0.9414 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.009087/0.5095, allocations: 3.506 MB / 0.8496 GB, free: 13.43 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.763e-06/0.5095, allocations: 0 / 0.8496 GB, free: 13.43 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.964e-05/0.5095, allocations: 8 kB / 0.8496 GB, free: 13.42 MB / 0.5261 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.0006523/0.5102, allocations: 459.3 kB / 0.85 GB, free: 12.92 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.5102, allocations: 8.031 kB / 0.8501 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.753e-05/0.5103, allocations: 24.73 kB / 0.8501 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00028/0.5106, allocations: 227.9 kB / 0.8503 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.5106, allocations: 8.375 kB / 0.8503 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.895e-05/0.5106, allocations: 12.38 kB / 0.8503 GB, free: 12.61 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002951/0.5109, allocations: 158.3 kB / 0.8505 GB, free: 12.43 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.511, allocations: 192 / 0.8505 GB, free: 12.43 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.803e-05/0.511, allocations: 11.92 kB / 0.8505 GB, free: 12.42 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.511, allocations: 4.438 kB / 0.8505 GB, free: 12.41 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002216/0.5112, allocations: 86.45 kB / 0.8506 GB, free: 12.33 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009939/0.5122, allocations: 0.7587 MB / 0.8513 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.5124, allocations: 58.5 kB / 0.8514 GB, free: 11.44 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001018/0.5125, allocations: 36.83 kB / 0.8514 GB, free: 11.4 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.5125, allocations: 0 / 0.8514 GB, free: 11.4 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002845/0.5128, allocations: 134.7 kB / 0.8515 GB, free: 11.25 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=11): time 1.523e-06/0.5128, allocations: 0 / 0.8515 GB, free: 11.25 MB / 0.5261 GB Notification: Performance of matching and sorting (n=11): time 0.0004871/0.5133, allocations: 181.4 kB / 0.8517 GB, free: 11.06 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.35e-05/0.5134, allocations: 136.6 kB / 0.8518 GB, free: 10.9 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001877/0.5136, allocations: 203 kB / 0.852 GB, free: 10.69 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/0.5136, allocations: 25.7 kB / 0.852 GB, free: 10.66 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 8.08e-05/0.5137, allocations: 131.8 kB / 0.8522 GB, free: 10.53 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 3.025e-05/0.5137, allocations: 35.67 kB / 0.8522 GB, free: 10.49 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.564e-06/0.5138, allocations: 4 kB / 0.8522 GB, free: 10.49 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.5139, allocations: 330.8 kB / 0.8525 GB, free: 10.16 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.514, allocations: 35.98 kB / 0.8526 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001727/0.5142, allocations: 148.3 kB / 0.8527 GB, free: 9.926 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002997/0.5145, allocations: 218.3 kB / 0.8529 GB, free: 9.66 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.5145, allocations: 3.938 kB / 0.8529 GB, free: 9.656 MB / 0.5261 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003883/0.5149, allocations: 221 kB / 0.8531 GB, free: 9.434 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.5149, allocations: 4 kB / 0.8531 GB, free: 9.43 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.967e-06/0.5149, allocations: 4.75 kB / 0.8531 GB, free: 9.426 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.515, allocations: 4 kB / 0.8531 GB, free: 9.422 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.5151, allocations: 47.86 kB / 0.8532 GB, free: 9.375 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.5151, allocations: 7.984 kB / 0.8532 GB, free: 9.367 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001367/0.5153, allocations: 31.83 kB / 0.8532 GB, free: 9.336 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.5153, allocations: 8 kB / 0.8532 GB, free: 9.328 MB / 0.5261 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 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001152/0.5154, allocations: 145.1 kB / 0.8534 GB, free: 9.18 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.771e-05/0.5154, allocations: 19.81 kB / 0.8534 GB, free: 9.16 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.01e-05/0.5155, allocations: 21.39 kB / 0.8534 GB, free: 9.137 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/0.5155, allocations: 7.938 kB / 0.8534 GB, free: 9.129 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.5155, allocations: 0 / 0.8534 GB, free: 9.129 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.5155, allocations: 4.234 kB / 0.8534 GB, free: 9.125 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007202/0.5163, allocations: 0.5326 MB / 0.8539 GB, free: 8.535 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.5163, allocations: 0 / 0.8539 GB, free: 8.535 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/0.5164, allocations: 19.98 kB / 0.854 GB, free: 8.516 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.5164, allocations: 0 / 0.854 GB, free: 8.516 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.5164, allocations: 8 kB / 0.854 GB, free: 8.508 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.5164, allocations: 4 kB / 0.854 GB, free: 8.504 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.5164, allocations: 4 kB / 0.854 GB, free: 8.5 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004896/0.5169, allocations: 369.8 kB / 0.8543 GB, free: 8.117 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 6.597e-05/0.517, allocations: 96.95 kB / 0.8544 GB, free: 8.004 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.517, allocations: 0 / 0.8544 GB, free: 8.004 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.5172, allocations: 23.98 kB / 0.8544 GB, free: 7.98 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.609e-05/0.5173, allocations: 11.92 kB / 0.8545 GB, free: 7.969 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.5173, allocations: 15.94 kB / 0.8545 GB, free: 7.953 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001135/0.5174, allocations: 140.4 kB / 0.8546 GB, free: 7.816 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5174, allocations: 0 / 0.8546 GB, free: 7.816 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003162/0.5177, allocations: 35.89 kB / 0.8546 GB, free: 7.781 MB / 0.5261 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,intWitRes1.trigger,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00014/0.5179, allocations: 115.1 kB / 0.8547 GB, free: 7.66 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0003148/0.5182, allocations: 123.8 kB / 0.8549 GB, free: 7.539 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.5182, allocations: 1 kB / 0.8549 GB, free: 7.539 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.5184, allocations: 55.97 kB / 0.8549 GB, free: 7.484 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005141/0.5189, allocations: 64.12 kB / 0.855 GB, free: 7.422 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005709/0.5195, allocations: 378.8 kB / 0.8553 GB, free: 7.012 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003007/0.5198, allocations: 0.7284 MB / 0.8561 GB, free: 6.258 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 8.233e-05/0.5199, allocations: 17.55 kB / 0.8561 GB, free: 6.238 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.696e-05/0.5199, allocations: 15.44 kB / 0.8561 GB, free: 6.223 MB / 0.5261 GB Notification: Performance of SimCode: time 3.11e-07/0.5199, allocations: 4 kB / 0.8561 GB, free: 6.219 MB / 0.5261 GB Notification: Performance of Templates: time 0.004522/0.5244, allocations: 1.762 MB / 0.8578 GB, free: 4.477 MB / 0.5261 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.makefile (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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)