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.000883/0.000883, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.0009069/0.000907, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.16/1.16, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6627/0.6627, allocations: 132.4 MB / 423.4 MB, free: 2.086 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002592/0.0002593, allocations: 16 kB / 0.5034 GB, free: 4.285 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3317, allocations: 81.58 MB / 0.5831 GB, free: 3.977 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.001441/0.3332, allocations: 1.475 MB / 0.5845 GB, free: 2.906 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006332/0.3338, allocations: 0.5186 MB / 0.585 GB, free: 2.535 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.803e-05/0.3339, allocations: 6.5 kB / 0.585 GB, free: 2.531 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 8.896e-05/0.334, allocations: 14.77 kB / 0.585 GB, free: 2.523 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 5.297e-05/0.3341, allocations: 21.09 kB / 0.5851 GB, free: 2.508 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001616/0.3342, allocations: 55.28 kB / 0.5851 GB, free: 2.48 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001638/0.3344, allocations: 147.6 kB / 0.5853 GB, free: 2.414 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.3345, allocations: 33.03 kB / 0.5853 GB, free: 2.406 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.883e-05/0.3346, allocations: 44.8 kB / 0.5853 GB, free: 2.383 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.328e-05/0.3347, allocations: 50.56 kB / 0.5854 GB, free: 2.355 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.784e-05/0.3347, allocations: 4.125 kB / 0.5854 GB, free: 2.355 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.519e-05/0.3347, allocations: 8.75 kB / 0.5854 GB, free: 2.352 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.226e-05/0.3347, allocations: 21.81 kB / 0.5854 GB, free: 2.34 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.027e-05/0.3348, allocations: 45.89 kB / 0.5855 GB, free: 2.297 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001069/0.3349, allocations: 86.77 kB / 0.5855 GB, free: 2.273 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.3349, allocations: 5.406 kB / 0.5855 GB, free: 2.27 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.3349, allocations: 3.938 kB / 0.5855 GB, free: 2.266 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.802e-06/0.3349, allocations: 0 / 0.5855 GB, free: 2.266 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.0004925/0.3354, allocations: 454.4 kB / 0.586 GB, free: 1.855 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.878e-05/0.3354, allocations: 8.906 kB / 0.586 GB, free: 1.855 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.923e-05/0.3355, allocations: 21.91 kB / 0.586 GB, free: 1.844 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001808/0.3357, allocations: 234 kB / 0.5862 GB, free: 1.609 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.3357, allocations: 9.625 kB / 0.5862 GB, free: 1.605 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.808e-05/0.3357, allocations: 12.5 kB / 0.5863 GB, free: 1.602 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002433/0.336, allocations: 154.6 kB / 0.5864 GB, free: 1.496 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.336, allocations: 0 / 0.5864 GB, free: 1.496 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.166e-05/0.336, allocations: 2.25 kB / 0.5864 GB, free: 1.496 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.336, allocations: 2.938 kB / 0.5864 GB, free: 1.496 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002006/0.3362, allocations: 89.94 kB / 0.5865 GB, free: 1.469 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006483/0.3369, allocations: 0.7399 MB / 0.5872 GB, free: 0.7969 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001167/0.337, allocations: 53.45 kB / 0.5873 GB, free: 0.7656 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.959e-05/0.3371, allocations: 39.23 kB / 0.5873 GB, free: 0.75 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.59e-05/0.3371, allocations: 4.844 kB / 0.5873 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002073/0.3373, allocations: 123.7 kB / 0.5874 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.3374, allocations: 0.625 kB / 0.5874 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.000399/0.3378, allocations: 187.2 kB / 0.5876 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.961e-05/0.3378, allocations: 132 kB / 0.5877 GB, free: 428 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001404/0.3379, allocations: 194.7 kB / 0.5879 GB, free: 292 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.218e-05/0.338, allocations: 34.61 kB / 0.588 GB, free: 252 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.918e-05/0.338, allocations: 129.8 kB / 0.5881 GB, free: 132 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.569e-05/0.338, allocations: 40.44 kB / 0.5881 GB, free: 100 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-06/0.3381, allocations: 0 / 0.5881 GB, free: 100 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.3382, allocations: 333.3 kB / 0.5884 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001077/0.3383, allocations: 41.58 kB / 0.5885 GB, free: 15.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001531/0.3384, allocations: 148.3 kB / 0.5886 GB, free: 15.61 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001275/0.3386, allocations: 63.33 kB / 0.5887 GB, free: 15.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.3386, allocations: 1.281 kB / 0.5887 GB, free: 15.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003727/0.339, allocations: 220.9 kB / 0.5889 GB, free: 15.49 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.339, allocations: 8.594 kB / 0.5889 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.339, allocations: 4.656 kB / 0.5889 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.339, allocations: 5.438 kB / 0.5889 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001184/0.3391, allocations: 39.78 kB / 0.5889 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.3392, allocations: 5.438 kB / 0.5889 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/0.3393, allocations: 36.8 kB / 0.589 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.208e-05/0.3393, allocations: 9.156 kB / 0.589 GB, free: 15.46 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 ($whenCondition2,sampleTrigger.y,$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 9.101e-05/0.3394, allocations: 138.4 kB / 0.5891 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.807e-05/0.3394, allocations: 17.47 kB / 0.5891 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.257e-05/0.3395, allocations: 25.44 kB / 0.5892 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3395, allocations: 5.672 kB / 0.5892 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.3395, allocations: 6.391 kB / 0.5892 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.3395, allocations: 6.422 kB / 0.5892 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006512/0.3402, allocations: 0.5263 MB / 0.5897 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.3402, allocations: 2 kB / 0.5897 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.3403, allocations: 16.78 kB / 0.5897 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.3403, allocations: 2.438 kB / 0.5897 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/0.3403, allocations: 11.11 kB / 0.5897 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.546e-06/0.3403, allocations: 1.25 kB / 0.5897 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3403, allocations: 1.125 kB / 0.5897 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004299/0.3408, allocations: 374.9 kB / 0.5901 GB, free: 14.58 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.779e-05/0.3408, allocations: 95.97 kB / 0.5902 GB, free: 14.48 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.335e-05/0.3409, allocations: 3.453 kB / 0.5902 GB, free: 14.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.341, allocations: 24.38 kB / 0.5902 GB, free: 14.47 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4e-05/0.3411, allocations: 9.422 kB / 0.5902 GB, free: 14.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.187e-05/0.3411, allocations: 9 kB / 0.5902 GB, free: 14.46 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001022/0.3412, allocations: 143.2 kB / 0.5904 GB, free: 14.37 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3412, allocations: 0 / 0.5904 GB, free: 14.37 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002987/0.3415, allocations: 27.83 kB / 0.5904 GB, free: 14.36 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 (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 9.971e-05/0.3416, allocations: 108.9 kB / 0.5905 GB, free: 14.27 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002918/0.3419, allocations: 122.1 kB / 0.5906 GB, free: 14.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3419, allocations: 0.75 kB / 0.5906 GB, free: 14.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001312/0.3421, allocations: 53.92 kB / 0.5907 GB, free: 14.22 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004722/0.3425, allocations: 63.94 kB / 0.5907 GB, free: 14.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004982/0.343, allocations: 396.5 kB / 0.5911 GB, free: 13.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002368/0.3433, allocations: 0.7248 MB / 0.5918 GB, free: 13.21 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.86e-05/0.3434, allocations: 21.59 kB / 0.5918 GB, free: 13.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.323e-05/0.3434, allocations: 16.53 kB / 0.5918 GB, free: 13.2 MB / 446.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3434, allocations: 0 / 0.5918 GB, free: 13.2 MB / 446.1 MB Notification: Performance of Templates: time 0.004019/0.3474, allocations: 1.739 MB / 0.5935 GB, free: 13.05 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)