Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset") translateModel(IDEAS.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.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.001087/0.001087, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 192 kB / 16.53 MB, free: 6.391 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.332/1.332, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7339/0.7339, allocations: 132.2 MB / 422.6 MB, free: 1.77 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 69.2 kB / 0.5018 GB, free: 3.848 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4239/0.4251, allocations: 80.2 MB / 0.5801 GB, free: 4.531 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002902/0.428, allocations: 1.812 MB / 0.5819 GB, free: 3.262 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.000874/0.4289, allocations: 0.5427 MB / 0.5824 GB, free: 2.875 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.837e-05/0.429, allocations: 6.688 kB / 0.5824 GB, free: 2.871 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001352/0.4292, allocations: 22.8 kB / 0.5824 GB, free: 2.855 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 6.429e-05/0.4292, allocations: 24.11 kB / 0.5824 GB, free: 2.836 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000214/0.4295, allocations: 68.83 kB / 0.5825 GB, free: 2.801 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002214/0.4297, allocations: 176.3 kB / 0.5827 GB, free: 2.715 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001543/0.4299, allocations: 52.34 kB / 0.5827 GB, free: 2.691 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.246e-05/0.4299, allocations: 57.48 kB / 0.5828 GB, free: 2.66 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.08e-05/0.43, allocations: 52.81 kB / 0.5828 GB, free: 2.633 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.809e-05/0.4301, allocations: 10.59 kB / 0.5828 GB, free: 2.633 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.279e-05/0.4301, allocations: 10.47 kB / 0.5828 GB, free: 2.633 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.76e-05/0.4301, allocations: 33.28 kB / 0.5829 GB, free: 2.609 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.547e-05/0.4302, allocations: 64.42 kB / 0.5829 GB, free: 2.566 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001789/0.4304, allocations: 135.6 kB / 0.5831 GB, free: 2.5 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.4304, allocations: 4 kB / 0.5831 GB, free: 2.496 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4304, allocations: 0.7188 kB / 0.5831 GB, free: 2.496 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.4304, allocations: 0 / 0.5831 GB, free: 2.496 MB / 430.1 MB 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.0006584/0.4311, allocations: 469.6 kB / 0.5835 GB, free: 2.074 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.4311, allocations: 9.844 kB / 0.5835 GB, free: 2.074 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.055e-05/0.4312, allocations: 22.08 kB / 0.5836 GB, free: 2.062 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002282/0.4314, allocations: 231.5 kB / 0.5838 GB, free: 1.832 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.589e-05/0.4314, allocations: 13.5 kB / 0.5838 GB, free: 1.824 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.826e-05/0.4315, allocations: 12.62 kB / 0.5838 GB, free: 1.82 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002849/0.4318, allocations: 146.7 kB / 0.5839 GB, free: 1.719 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.4318, allocations: 1.156 kB / 0.5839 GB, free: 1.719 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.699e-05/0.4318, allocations: 10.14 kB / 0.5839 GB, free: 1.711 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.4318, allocations: 6.719 kB / 0.584 GB, free: 1.707 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002358/0.4321, allocations: 69.41 kB / 0.584 GB, free: 1.691 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000787/0.4329, allocations: 0.7411 MB / 0.5847 GB, free: 1.016 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001433/0.433, allocations: 48.53 kB / 0.5848 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.4331, allocations: 34.41 kB / 0.5848 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.35e-05/0.4332, allocations: 5.125 kB / 0.5848 GB, free: 0.9648 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002628/0.4334, allocations: 123.1 kB / 0.5849 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of pre-optimization done (n=11): time 1.694e-06/0.4334, allocations: 1.156 kB / 0.5849 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004763/0.4339, allocations: 168.8 kB / 0.5851 GB, free: 0.793 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/0.434, allocations: 131.3 kB / 0.5852 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001693/0.4342, allocations: 208 kB / 0.5854 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.4342, allocations: 28.05 kB / 0.5855 GB, free: 472 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.47e-05/0.4342, allocations: 129 kB / 0.5856 GB, free: 352 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.045e-05/0.4343, allocations: 35.34 kB / 0.5856 GB, free: 324 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.492e-05/0.4343, allocations: 40.48 kB / 0.5857 GB, free: 296 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.801e-05/0.4344, allocations: 336.6 kB / 0.586 GB, free: 15.96 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.4346, allocations: 37.3 kB / 0.586 GB, free: 15.95 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001988/0.4348, allocations: 146.6 kB / 0.5862 GB, free: 15.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003219/0.4351, allocations: 206.8 kB / 0.5863 GB, free: 15.61 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.4351, allocations: 1.5 kB / 0.5864 GB, free: 15.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004192/0.4355, allocations: 199.3 kB / 0.5865 GB, free: 15.52 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.4356, allocations: 7.469 kB / 0.5865 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.4356, allocations: 7.203 kB / 0.5866 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.4356, allocations: 7.062 kB / 0.5866 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.4357, allocations: 33.27 kB / 0.5866 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.42e-05/0.4358, allocations: 13.98 kB / 0.5866 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001416/0.4359, allocations: 23.08 kB / 0.5866 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.488e-05/0.4359, allocations: 17.42 kB / 0.5866 GB, free: 15.49 MB / 446.1 MB 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.0001182/0.4361, allocations: 137 kB / 0.5868 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.199e-05/0.4361, allocations: 25.59 kB / 0.5868 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.613e-05/0.4362, allocations: 20.86 kB / 0.5868 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.4362, allocations: 2.188 kB / 0.5868 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/0.4362, allocations: 0.7188 kB / 0.5868 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.4362, allocations: 6.453 kB / 0.5868 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007699/0.437, allocations: 0.5018 MB / 0.5873 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.437, allocations: 1.734 kB / 0.5873 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001205/0.4371, allocations: 23.58 kB / 0.5873 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.4371, allocations: 6.797 kB / 0.5873 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.461e-05/0.4372, allocations: 2.281 kB / 0.5874 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.065e-06/0.4372, allocations: 6.422 kB / 0.5874 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.4372, allocations: 8.562 kB / 0.5874 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005103/0.4377, allocations: 361.7 kB / 0.5877 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.113e-05/0.4378, allocations: 99.39 kB / 0.5878 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.804e-05/0.4378, allocations: 2.562 kB / 0.5878 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001623/0.438, allocations: 12.55 kB / 0.5878 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.81e-05/0.438, allocations: 17.16 kB / 0.5878 GB, free: 14.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.083e-05/0.4381, allocations: 5.391 kB / 0.5878 GB, free: 14.49 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001224/0.4382, allocations: 141.5 kB / 0.588 GB, free: 14.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4382, allocations: 4 kB / 0.588 GB, free: 14.39 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003298/0.4385, allocations: 27.14 kB / 0.588 GB, free: 14.39 MB / 446.1 MB 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.0001472/0.4387, allocations: 99.53 kB / 0.5881 GB, free: 14.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003483/0.439, allocations: 126.7 kB / 0.5882 GB, free: 14.26 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4391, allocations: 0.5312 kB / 0.5882 GB, free: 14.26 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001481/0.4392, allocations: 48.64 kB / 0.5883 GB, free: 14.25 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005586/0.4398, allocations: 67.23 kB / 0.5883 GB, free: 14.23 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006376/0.4404, allocations: 353.5 kB / 0.5887 GB, free: 13.97 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.4407, allocations: 0.7206 MB / 0.5894 GB, free: 13.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.302e-05/0.4408, allocations: 20.53 kB / 0.5894 GB, free: 13.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.726e-05/0.4409, allocations: 21.22 kB / 0.5894 GB, free: 13.25 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4409, allocations: 0.5625 kB / 0.5894 GB, free: 13.25 MB / 446.1 MB Notification: Performance of Templates: time 0.005845/0.4467, allocations: 2.001 MB / 0.5914 GB, free: 13.1 MB / 446.1 MB make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & ./IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)