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.0007892/0.0007894, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005127/0.005127, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.369/1.369, allocations: 223.3 MB / 240.3 MB, free: 5.242 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7626/0.7626, allocations: 132.3 MB / 423.8 MB, free: 1.895 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003221/0.0003223, allocations: 12 kB / 0.504 GB, free: 3.875 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4172/0.4175, allocations: 81.58 MB / 0.5837 GB, free: 4.02 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.001786/0.4193, allocations: 1.52 MB / 0.5852 GB, free: 2.91 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007852/0.4201, allocations: 0.5286 MB / 0.5857 GB, free: 2.535 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.594e-05/0.4202, allocations: 6.719 kB / 0.5857 GB, free: 2.531 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001545/0.4204, allocations: 17.83 kB / 0.5857 GB, free: 2.52 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 7.664e-05/0.4205, allocations: 23.42 kB / 0.5857 GB, free: 2.504 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002381/0.4207, allocations: 59.22 kB / 0.5858 GB, free: 2.473 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002577/0.421, allocations: 162.9 kB / 0.5859 GB, free: 2.398 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001666/0.4212, allocations: 49.23 kB / 0.586 GB, free: 2.379 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.434e-05/0.4213, allocations: 46.3 kB / 0.586 GB, free: 2.355 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.16e-05/0.4214, allocations: 46.8 kB / 0.5861 GB, free: 2.332 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.076e-05/0.4214, allocations: 3.875 kB / 0.5861 GB, free: 2.332 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.828e-05/0.4214, allocations: 5.25 kB / 0.5861 GB, free: 2.332 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.175e-05/0.4214, allocations: 25.25 kB / 0.5861 GB, free: 2.316 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 7.184e-05/0.4215, allocations: 84.62 kB / 0.5862 GB, free: 2.246 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001713/0.4217, allocations: 120.2 kB / 0.5863 GB, free: 2.199 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.4217, allocations: 4 kB / 0.5863 GB, free: 2.195 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.4217, allocations: 0 / 0.5863 GB, free: 2.195 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.197e-05/0.4217, allocations: 0 / 0.5863 GB, free: 2.195 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.000644/0.4224, allocations: 458.4 kB / 0.5867 GB, free: 1.781 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.4224, allocations: 13.03 kB / 0.5868 GB, free: 1.777 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.265e-05/0.4225, allocations: 18 kB / 0.5868 GB, free: 1.77 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00025/0.4228, allocations: 228.1 kB / 0.587 GB, free: 1.543 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.122e-05/0.4228, allocations: 8.531 kB / 0.587 GB, free: 1.539 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.647e-05/0.4228, allocations: 17.59 kB / 0.587 GB, free: 1.531 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003135/0.4231, allocations: 151.5 kB / 0.5872 GB, free: 1.43 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.4232, allocations: 0.6562 kB / 0.5872 GB, free: 1.43 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/0.4232, allocations: 5.688 kB / 0.5872 GB, free: 1.426 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.4232, allocations: 2.828 kB / 0.5872 GB, free: 1.426 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002581/0.4235, allocations: 82.86 kB / 0.5872 GB, free: 1.406 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008635/0.4243, allocations: 0.7514 MB / 0.588 GB, free: 0.7227 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001638/0.4245, allocations: 53.58 kB / 0.588 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001387/0.4247, allocations: 39.44 kB / 0.5881 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.4247, allocations: 0.9688 kB / 0.5881 GB, free: 0.6758 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002858/0.425, allocations: 137.1 kB / 0.5882 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of pre-optimization done (n=11): time 1.643e-06/0.425, allocations: 0 / 0.5882 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005626/0.4256, allocations: 175.1 kB / 0.5884 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.6e-05/0.4256, allocations: 143.3 kB / 0.5885 GB, free: 344 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001989/0.4258, allocations: 201.3 kB / 0.5887 GB, free: 204 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.4259, allocations: 26.95 kB / 0.5887 GB, free: 172 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.369e-05/0.4259, allocations: 129.2 kB / 0.5888 GB, free: 52 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.822e-05/0.426, allocations: 36.16 kB / 0.5889 GB, free: 24 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.238e-05/0.4261, allocations: 32.08 kB / 0.5889 GB, free: 15.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.4262, allocations: 328.7 kB / 0.5892 GB, free: 15.67 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.4264, allocations: 46.55 kB / 0.5893 GB, free: 15.66 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002109/0.4266, allocations: 147.7 kB / 0.5894 GB, free: 15.51 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003992/0.427, allocations: 215.7 kB / 0.5896 GB, free: 15.32 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.427, allocations: 2.812 kB / 0.5896 GB, free: 15.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004631/0.4275, allocations: 220.6 kB / 0.5898 GB, free: 15.22 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.4275, allocations: 6.938 kB / 0.5898 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.4275, allocations: 3.594 kB / 0.5898 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/0.4276, allocations: 6.781 kB / 0.5898 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.4277, allocations: 34.56 kB / 0.5899 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.377e-05/0.4277, allocations: 6.203 kB / 0.5899 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001664/0.4279, allocations: 37.39 kB / 0.5899 GB, free: 15.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.844e-05/0.4279, allocations: 12.75 kB / 0.5899 GB, free: 15.2 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.0001322/0.4281, allocations: 141 kB / 0.5901 GB, free: 15.06 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.634e-05/0.4281, allocations: 16.3 kB / 0.5901 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5e-05/0.4282, allocations: 22.11 kB / 0.5901 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.4282, allocations: 1.938 kB / 0.5901 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.014e-06/0.4282, allocations: 2.375 kB / 0.5901 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.4282, allocations: 0.7031 kB / 0.5901 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008841/0.4291, allocations: 0.5288 MB / 0.5906 GB, free: 14.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.275e-06/0.4291, allocations: 4 kB / 0.5906 GB, free: 14.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001264/0.4292, allocations: 18.39 kB / 0.5906 GB, free: 14.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.4292, allocations: 3.094 kB / 0.5906 GB, free: 14.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.8e-05/0.4293, allocations: 6.781 kB / 0.5906 GB, free: 14.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.987e-06/0.4293, allocations: 2.375 kB / 0.5907 GB, free: 14.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.4293, allocations: 4.781 kB / 0.5907 GB, free: 14.59 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005925/0.4299, allocations: 375.2 kB / 0.591 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.304e-05/0.43, allocations: 99.02 kB / 0.5911 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.019e-05/0.43, allocations: 6.984 kB / 0.5911 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001798/0.4302, allocations: 16.45 kB / 0.5911 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.406e-05/0.4303, allocations: 14.56 kB / 0.5911 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.4303, allocations: 9.031 kB / 0.5912 GB, free: 14.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001412/0.4304, allocations: 141.9 kB / 0.5913 GB, free: 14.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4304, allocations: 4 kB / 0.5913 GB, free: 14.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003502/0.4308, allocations: 31.25 kB / 0.5913 GB, free: 14.09 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.0001506/0.4309, allocations: 106.1 kB / 0.5914 GB, free: 14 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000385/0.4313, allocations: 123.5 kB / 0.5915 GB, free: 13.96 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4313, allocations: 3.938 kB / 0.5915 GB, free: 13.96 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001874/0.4315, allocations: 54.03 kB / 0.5916 GB, free: 13.95 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006331/0.4322, allocations: 70.45 kB / 0.5917 GB, free: 13.93 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006966/0.4329, allocations: 399.3 kB / 0.592 GB, free: 13.63 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003313/0.4332, allocations: 0.7244 MB / 0.5928 GB, free: 12.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.386e-05/0.4333, allocations: 16.64 kB / 0.5928 GB, free: 12.93 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.812e-05/0.4334, allocations: 16.84 kB / 0.5928 GB, free: 12.92 MB / 446.1 MB Notification: Performance of SimCode: time 1.653e-06/0.4334, allocations: 0 / 0.5928 GB, free: 12.92 MB / 446.1 MB Notification: Performance of Templates: time 0.005284/0.4387, allocations: 1.805 MB / 0.5945 GB, free: 12.78 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)