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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005223/0.005223, allocations: 96.88 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001317/0.001317, allocations: 191.8 kB / 16.67 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002157/0.002157, allocations: 270.9 kB / 290.8 MB, free: 1.773 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9293/0.9293, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001569/0.001569, allocations: 95.83 kB / 0.6815 GB, free: 15.48 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1563, allocations: 86.97 MB / 0.7664 GB, free: 8.43 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.00276/0.1591, allocations: 1.833 MB / 0.7682 GB, free: 6.586 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008207/0.1599, allocations: 0.5343 MB / 0.7687 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.972e-05/0.16, allocations: 7.938 kB / 0.7687 GB, free: 6.039 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001195/0.1601, allocations: 27.73 kB / 0.7687 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 6.694e-05/0.1602, allocations: 27.72 kB / 0.7688 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001896/0.1604, allocations: 67.86 kB / 0.7688 GB, free: 5.918 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002101/0.1606, allocations: 171.5 kB / 0.769 GB, free: 5.75 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.1608, allocations: 53.62 kB / 0.769 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.575e-05/0.1609, allocations: 59.72 kB / 0.7691 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.744e-05/0.1609, allocations: 55.64 kB / 0.7692 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.447e-05/0.161, allocations: 12 kB / 0.7692 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 1.841e-05/0.161, allocations: 8 kB / 0.7692 GB, free: 5.562 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.313e-05/0.161, allocations: 31.91 kB / 0.7692 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 6.318e-05/0.1611, allocations: 71.53 kB / 0.7693 GB, free: 5.461 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001643/0.1613, allocations: 131.3 kB / 0.7694 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1613, allocations: 0 / 0.7694 GB, free: 5.332 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.322e-06/0.1613, allocations: 4 kB / 0.7694 GB, free: 5.328 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.34e-06/0.1613, allocations: 4 kB / 0.7694 GB, free: 5.324 MB / 0.5606 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.0006404/0.1619, allocations: 474.5 kB / 0.7699 GB, free: 4.812 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.149e-05/0.162, allocations: 12.03 kB / 0.7699 GB, free: 4.801 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.322e-05/0.162, allocations: 16.84 kB / 0.7699 GB, free: 4.785 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002575/0.1623, allocations: 240 kB / 0.7701 GB, free: 4.512 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.1623, allocations: 8.375 kB / 0.7701 GB, free: 4.504 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.941e-05/0.1623, allocations: 16.36 kB / 0.7701 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002917/0.1626, allocations: 151.8 kB / 0.7703 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.1627, allocations: 0 / 0.7703 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.1627, allocations: 8 kB / 0.7703 GB, free: 4.312 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.1627, allocations: 4 kB / 0.7703 GB, free: 4.309 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002178/0.1629, allocations: 75.83 kB / 0.7704 GB, free: 4.234 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008311/0.1638, allocations: 0.7395 MB / 0.7711 GB, free: 3.43 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001305/0.1639, allocations: 46.53 kB / 0.7711 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.164, allocations: 40.77 kB / 0.7712 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.796e-05/0.164, allocations: 4 kB / 0.7712 GB, free: 3.328 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002057/0.1642, allocations: 126.6 kB / 0.7713 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=11): time 1.122e-06/0.1643, allocations: 0 / 0.7713 GB, free: 3.18 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0004392/0.1647, allocations: 169.6 kB / 0.7715 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.064e-05/0.1648, allocations: 132.5 kB / 0.7716 GB, free: 2.848 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.1649, allocations: 195.2 kB / 0.7718 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.165, allocations: 33.69 kB / 0.7718 GB, free: 2.609 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.24e-05/0.165, allocations: 127.7 kB / 0.7719 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.245e-05/0.1651, allocations: 47.83 kB / 0.772 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.338e-05/0.1651, allocations: 37.7 kB / 0.772 GB, free: 2.391 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.263e-05/0.1652, allocations: 330.8 kB / 0.7723 GB, free: 2.059 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.1653, allocations: 39.97 kB / 0.7724 GB, free: 2.02 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001682/0.1655, allocations: 150.4 kB / 0.7725 GB, free: 1.82 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002791/0.1658, allocations: 198.3 kB / 0.7727 GB, free: 1.574 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1658, allocations: 0 / 0.7727 GB, free: 1.574 MB / 0.5606 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003543/0.1662, allocations: 205.2 kB / 0.7729 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.1662, allocations: 8 kB / 0.7729 GB, free: 1.359 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.1662, allocations: 4 kB / 0.7729 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.1662, allocations: 4 kB / 0.7729 GB, free: 1.352 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.1663, allocations: 35.91 kB / 0.7729 GB, free: 1.316 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.1664, allocations: 12.44 kB / 0.7729 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001316/0.1665, allocations: 31.88 kB / 0.773 GB, free: 1.273 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.1665, allocations: 8 kB / 0.773 GB, free: 1.266 MB / 0.5606 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.0001058/0.1666, allocations: 139.5 kB / 0.7731 GB, free: 1.121 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.903e-05/0.1667, allocations: 23.89 kB / 0.7731 GB, free: 1.098 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.863e-05/0.1667, allocations: 17.41 kB / 0.7732 GB, free: 1.078 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.1667, allocations: 0 / 0.7732 GB, free: 1.078 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1667, allocations: 4 kB / 0.7732 GB, free: 1.074 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1667, allocations: 3.984 kB / 0.7732 GB, free: 1.07 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007116/0.1675, allocations: 0.5054 MB / 0.7737 GB, free: 0.5078 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.1675, allocations: 4 kB / 0.7737 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001106/0.1676, allocations: 15.98 kB / 0.7737 GB, free: 500 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.1676, allocations: 7.922 kB / 0.7737 GB, free: 492 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.1676, allocations: 11.94 kB / 0.7737 GB, free: 480 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1676, allocations: 4.312 kB / 0.7737 GB, free: 476 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.1676, allocations: 3.938 kB / 0.7737 GB, free: 472 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004383/0.1681, allocations: 356.3 kB / 0.774 GB, free: 92 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.3122/0.4803, allocations: 94.02 kB / 0.7741 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.305e-05/0.4804, allocations: 3 kB / 0.7741 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002162/0.4806, allocations: 17.06 kB / 0.7742 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.051e-05/0.4807, allocations: 13.03 kB / 0.7742 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.427e-05/0.4807, allocations: 5.75 kB / 0.7742 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000131/0.4808, allocations: 141.6 kB / 0.7743 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4808, allocations: 1.781 kB / 0.7743 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003935/0.4812, allocations: 27.66 kB / 0.7743 GB, free: 14.68 MB / 0.5606 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 9.939e-05/0.4813, allocations: 110.1 kB / 0.7744 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003582/0.4817, allocations: 115.5 kB / 0.7745 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.4817, allocations: 0.7812 kB / 0.7745 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001535/0.4819, allocations: 56.42 kB / 0.7746 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005684/0.4824, allocations: 64.14 kB / 0.7747 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005437/0.483, allocations: 348.4 kB / 0.775 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001466/0.4831, allocations: 0.7287 MB / 0.7757 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.978e-05/0.4832, allocations: 19.02 kB / 0.7757 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.048e-05/0.4833, allocations: 17.75 kB / 0.7757 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of SimCode: time 2.51e-07/0.4833, allocations: 1.156 kB / 0.7757 GB, free: 13.66 MB / 0.5606 GB Notification: Performance of Templates: time 0.004806/0.4881, allocations: 2.044 MB / 0.7777 GB, free: 13.59 MB / 0.5606 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)