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: "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00115/0.00115, allocations: 192.9 kB / 16.14 MB, free: 6.707 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.273/1.273, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7135/0.7135, allocations: 132.2 MB / 422.1 MB, free: 2.031 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001117/0.001117, allocations: 56.59 kB / 0.5012 GB, free: 9.137 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1382, allocations: 80.2 MB / 0.5795 GB, free: 9.156 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.00251/0.1407, allocations: 1.882 MB / 0.5813 GB, free: 7.258 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007147/0.1414, allocations: 0.526 MB / 0.5818 GB, free: 6.727 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.416e-05/0.1415, allocations: 7.938 kB / 0.5819 GB, free: 6.719 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000109/0.1416, allocations: 11.86 kB / 0.5819 GB, free: 6.707 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.936e-05/0.1417, allocations: 27.8 kB / 0.5819 GB, free: 6.68 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001568/0.1419, allocations: 59.92 kB / 0.582 GB, free: 6.621 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001647/0.142, allocations: 167.4 kB / 0.5821 GB, free: 6.457 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.1421, allocations: 49.66 kB / 0.5822 GB, free: 6.406 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.049e-05/0.1422, allocations: 51.72 kB / 0.5822 GB, free: 6.355 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.984e-05/0.1423, allocations: 59.62 kB / 0.5823 GB, free: 6.297 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.961e-05/0.1423, allocations: 8 kB / 0.5823 GB, free: 6.289 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.62e-05/0.1423, allocations: 4 kB / 0.5823 GB, free: 6.285 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.569e-05/0.1424, allocations: 19.92 kB / 0.5823 GB, free: 6.266 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.821e-05/0.1424, allocations: 59.61 kB / 0.5824 GB, free: 6.207 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001168/0.1425, allocations: 123.8 kB / 0.5825 GB, free: 6.086 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.1425, allocations: 0 / 0.5825 GB, free: 6.086 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.11e-07/0.1426, allocations: 0 / 0.5825 GB, free: 6.086 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.266e-06/0.1426, allocations: 4 kB / 0.5825 GB, free: 6.082 MB / 494.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.0005666/0.1431, allocations: 479.9 kB / 0.5829 GB, free: 5.566 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.167e-05/0.1432, allocations: 8.031 kB / 0.5829 GB, free: 5.559 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.531e-05/0.1432, allocations: 38.75 kB / 0.583 GB, free: 5.512 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.693e-05/0.1433, allocations: 24.66 kB / 0.583 GB, free: 5.488 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001955/0.1435, allocations: 227.9 kB / 0.5832 GB, free: 5.227 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.1435, allocations: 8.375 kB / 0.5832 GB, free: 5.219 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.462e-05/0.1435, allocations: 16.38 kB / 0.5832 GB, free: 5.203 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002523/0.1438, allocations: 150 kB / 0.5834 GB, free: 5.035 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.941e-06/0.1438, allocations: 0 / 0.5834 GB, free: 5.035 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.1438, allocations: 7.984 kB / 0.5834 GB, free: 5.027 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.72e-06/0.1438, allocations: 4 kB / 0.5834 GB, free: 5.023 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002033/0.144, allocations: 71.89 kB / 0.5835 GB, free: 4.953 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007493/0.1448, allocations: 0.7469 MB / 0.5842 GB, free: 4.141 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001241/0.1449, allocations: 46.48 kB / 0.5842 GB, free: 4.086 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.158e-05/0.145, allocations: 32.84 kB / 0.5843 GB, free: 4.051 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.145, allocations: 4 kB / 0.5843 GB, free: 4.047 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002076/0.1452, allocations: 122.7 kB / 0.5844 GB, free: 3.902 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 2.394e-06/0.1453, allocations: 3.984 kB / 0.5844 GB, free: 3.898 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004051/0.1457, allocations: 165.5 kB / 0.5845 GB, free: 3.73 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.305e-05/0.1457, allocations: 136.5 kB / 0.5847 GB, free: 3.566 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.1459, allocations: 195.1 kB / 0.5849 GB, free: 3.367 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.745e-05/0.1459, allocations: 29.7 kB / 0.5849 GB, free: 3.332 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.797e-05/0.146, allocations: 139.5 kB / 0.585 GB, free: 3.191 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.846e-05/0.146, allocations: 43.64 kB / 0.5851 GB, free: 3.148 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.989e-05/0.1461, allocations: 37.7 kB / 0.5851 GB, free: 3.105 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.662e-05/0.1462, allocations: 330.8 kB / 0.5854 GB, free: 2.773 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001136/0.1463, allocations: 43.97 kB / 0.5855 GB, free: 2.73 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.1464, allocations: 144 kB / 0.5856 GB, free: 2.539 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002649/0.1467, allocations: 198.6 kB / 0.5858 GB, free: 2.293 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1467, allocations: 0 / 0.5858 GB, free: 2.293 MB / 494.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00035/0.1471, allocations: 217.1 kB / 0.586 GB, free: 2.074 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.1471, allocations: 4 kB / 0.586 GB, free: 2.07 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.1471, allocations: 4 kB / 0.586 GB, free: 2.066 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.1471, allocations: 4 kB / 0.586 GB, free: 2.062 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.1472, allocations: 31.92 kB / 0.586 GB, free: 2.031 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.748e-06/0.1472, allocations: 11.98 kB / 0.586 GB, free: 2.02 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001331/0.1474, allocations: 36.14 kB / 0.5861 GB, free: 1.984 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.305e-05/0.1474, allocations: 12 kB / 0.5861 GB, free: 1.973 MB / 494.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 8.597e-05/0.1475, allocations: 134.3 kB / 0.5862 GB, free: 1.832 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.078e-05/0.1475, allocations: 19.81 kB / 0.5862 GB, free: 1.812 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.667e-05/0.1476, allocations: 25.33 kB / 0.5863 GB, free: 1.785 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.1476, allocations: 0 / 0.5863 GB, free: 1.785 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1476, allocations: 4 kB / 0.5863 GB, free: 1.781 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1476, allocations: 0 / 0.5863 GB, free: 1.781 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006431/0.1482, allocations: 0.5055 MB / 0.5868 GB, free: 1.219 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.1483, allocations: 4 kB / 0.5868 GB, free: 1.215 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001098/0.1484, allocations: 19.92 kB / 0.5868 GB, free: 1.195 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1484, allocations: 0 / 0.5868 GB, free: 1.195 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.1484, allocations: 8 kB / 0.5868 GB, free: 1.188 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.1484, allocations: 7.938 kB / 0.5868 GB, free: 1.18 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1484, allocations: 0 / 0.5868 GB, free: 1.18 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000423/0.1488, allocations: 359.1 kB / 0.5871 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.267e-05/0.1489, allocations: 96.95 kB / 0.5872 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.411e-05/0.1489, allocations: 4 kB / 0.5872 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001608/0.1491, allocations: 15.92 kB / 0.5873 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.344e-05/0.1491, allocations: 19.92 kB / 0.5873 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.173e-05/0.1492, allocations: 7.984 kB / 0.5873 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.084e-05/0.1492, allocations: 140.4 kB / 0.5874 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1493, allocations: 0 / 0.5874 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003045/0.1496, allocations: 28 kB / 0.5874 GB, free: 496 kB / 494.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.0006428/0.1502, allocations: 0.9006 MB / 0.5883 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002598/0.1505, allocations: 111.8 kB / 0.5884 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1505, allocations: 1 kB / 0.5884 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.1506, allocations: 56.22 kB / 0.5885 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004855/0.1511, allocations: 71.92 kB / 0.5886 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002096/0.1532, allocations: 2.288 MB / 0.5908 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002146/0.1534, allocations: 0.7245 MB / 0.5915 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.582e-05/0.1535, allocations: 13.55 kB / 0.5915 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.621e-05/0.1536, allocations: 51.42 kB / 0.5916 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of SimCode: time 3.9e-07/0.1536, allocations: 3.938 kB / 0.5916 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.68/2.834, allocations: 3.656 MB / 0.5951 GB, free: 8.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001932/2.834, allocations: 186.3 kB / 0.5953 GB, free: 8.246 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/4.535, allocations: 4.062 kB / 0.5953 GB, free: 8.242 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset.fmu > IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)