Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset") translateModel(IDEAS.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_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.0008014/0.0008016, allocations: 99.11 kB / 16.02 MB, free: 76 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.0009627/0.0009628, allocations: 182 kB / 16.92 MB, free: 6.918 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.301/1.301, allocations: 223.3 MB / 241 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8929/0.8929, allocations: 135.3 MB / 427.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003166/0.0003166, allocations: 8 kB / 0.5082 GB, free: 4.797 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.141/0.1413, allocations: 82.31 MB / 0.5886 GB, free: 2.66 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.001736/0.1431, allocations: 1.519 MB / 0.5901 GB, free: 1.125 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007665/0.1439, allocations: 0.5183 MB / 0.5906 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.892e-05/0.144, allocations: 3.938 kB / 0.5906 GB, free: 0.5977 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000106/0.1441, allocations: 19.86 kB / 0.5906 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.865e-05/0.1442, allocations: 19.78 kB / 0.5906 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001811/0.1443, allocations: 63.94 kB / 0.5907 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001903/0.1445, allocations: 163.4 kB / 0.5909 GB, free: 344 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001369/0.1447, allocations: 53.64 kB / 0.5909 GB, free: 288 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.554e-05/0.1448, allocations: 39.73 kB / 0.5909 GB, free: 248 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.444e-05/0.1448, allocations: 55.69 kB / 0.591 GB, free: 192 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.915e-05/0.1449, allocations: 4 kB / 0.591 GB, free: 188 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.657e-05/0.1449, allocations: 4 kB / 0.591 GB, free: 184 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.557e-05/0.1449, allocations: 23.86 kB / 0.591 GB, free: 160 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.632e-05/0.145, allocations: 85.25 kB / 0.5911 GB, free: 68 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001144/0.1451, allocations: 80.05 kB / 0.5912 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.1451, allocations: 4 kB / 0.5912 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.272e-06/0.1451, allocations: 0 / 0.5912 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.466e-06/0.1451, allocations: 0 / 0.5912 GB, free: 15.98 MB / 0.4981 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.0006024/0.1457, allocations: 458.8 kB / 0.5916 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.1458, allocations: 16.03 kB / 0.5916 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.985e-05/0.1458, allocations: 16.75 kB / 0.5917 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000218/0.1461, allocations: 227.9 kB / 0.5919 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.523e-05/0.1461, allocations: 8.375 kB / 0.5919 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.035e-05/0.1461, allocations: 16.36 kB / 0.5919 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002867/0.1464, allocations: 161.4 kB / 0.5921 GB, free: 15 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.1464, allocations: 7.938 kB / 0.5921 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.1465, allocations: 4 kB / 0.5921 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.1465, allocations: 7.984 kB / 0.5921 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002358/0.1467, allocations: 83.88 kB / 0.5922 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008373/0.1476, allocations: 0.7353 MB / 0.5929 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001518/0.1477, allocations: 54.48 kB / 0.5929 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.1478, allocations: 44.83 kB / 0.593 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.133e-05/0.1479, allocations: 4 kB / 0.593 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002422/0.1481, allocations: 118.7 kB / 0.5931 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.312e-06/0.1481, allocations: 0 / 0.5931 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004724/0.1486, allocations: 189.3 kB / 0.5933 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.929e-05/0.1487, allocations: 132.8 kB / 0.5934 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.1488, allocations: 202.9 kB / 0.5936 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.1489, allocations: 29.7 kB / 0.5936 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.575e-05/0.149, allocations: 127.9 kB / 0.5937 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.465e-05/0.149, allocations: 43.69 kB / 0.5938 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.208e-05/0.149, allocations: 17.72 kB / 0.5938 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1491, allocations: 330.8 kB / 0.5941 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.1493, allocations: 51.91 kB / 0.5942 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.1495, allocations: 150.5 kB / 0.5943 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003139/0.1498, allocations: 214.3 kB / 0.5945 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1498, allocations: 0 / 0.5945 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003946/0.1502, allocations: 217.3 kB / 0.5947 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.1502, allocations: 8 kB / 0.5947 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.1503, allocations: 4 kB / 0.5947 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.1503, allocations: 7.938 kB / 0.5947 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.1504, allocations: 35.97 kB / 0.5948 GB, free: 11.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.1504, allocations: 15.88 kB / 0.5948 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/0.1506, allocations: 36.02 kB / 0.5948 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.1506, allocations: 8 kB / 0.5948 GB, free: 11.87 MB / 0.4981 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.0001022/0.1507, allocations: 133.7 kB / 0.595 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.876e-05/0.1507, allocations: 23.81 kB / 0.595 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.219e-05/0.1508, allocations: 21.39 kB / 0.595 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.329e-06/0.1508, allocations: 4 kB / 0.595 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1508, allocations: 0 / 0.595 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1508, allocations: 0 / 0.595 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000728/0.1515, allocations: 0.529 MB / 0.5955 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1516, allocations: 4.047 kB / 0.5955 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001232/0.1517, allocations: 27.91 kB / 0.5955 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.1517, allocations: 0 / 0.5955 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.1517, allocations: 4 kB / 0.5956 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.1517, allocations: 3.984 kB / 0.5956 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.1517, allocations: 3.938 kB / 0.5956 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004864/0.1522, allocations: 376 kB / 0.5959 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.431e-05/0.1523, allocations: 100.9 kB / 0.596 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.1523, allocations: 0 / 0.596 GB, free: 10.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/0.1525, allocations: 20.03 kB / 0.596 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.557e-05/0.1526, allocations: 15.91 kB / 0.596 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.1526, allocations: 4 kB / 0.5961 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001055/0.1527, allocations: 144.6 kB / 0.5962 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1527, allocations: 0 / 0.5962 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003234/0.153, allocations: 32 kB / 0.5962 GB, free: 10.34 MB / 0.4981 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 0.0001036/0.1531, allocations: 99.19 kB / 0.5963 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003207/0.1535, allocations: 128.4 kB / 0.5964 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1535, allocations: 0 / 0.5964 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.1536, allocations: 55.91 kB / 0.5965 GB, free: 10.05 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005641/0.1542, allocations: 66.55 kB / 0.5966 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005442/0.1547, allocations: 440.4 kB / 0.597 GB, free: 9.516 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000249/0.155, allocations: 0.7244 MB / 0.5977 GB, free: 8.766 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.399e-05/0.1551, allocations: 23.38 kB / 0.5977 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of SimCode: time 3.41e-07/0.1551, allocations: 0 / 0.5977 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of Templates: time 0.003441/0.1585, allocations: 2.104 MB / 0.5998 GB, free: 6.648 MB / 0.4981 GB make -j1 -f IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & ./IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)