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: "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_dev_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.001067/0.001067, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00113/0.00113, allocations: 189.3 kB / 16.25 MB, free: 6.633 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.174/1.174, allocations: 222.9 MB / 239.9 MB, free: 4.5 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.852/0.852, allocations: 135.1 MB / 425.2 MB, free: 11.84 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 63.38 kB / 0.505 GB, free: 5.547 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1535/0.1548, allocations: 80.93 MB / 0.584 GB, free: 4.785 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002839/0.1576, allocations: 1.862 MB / 0.5858 GB, free: 2.902 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008459/0.1585, allocations: 0.5261 MB / 0.5863 GB, free: 2.371 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.518e-05/0.1586, allocations: 7.938 kB / 0.5863 GB, free: 2.363 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001258/0.1588, allocations: 23.84 kB / 0.5864 GB, free: 2.34 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 6.441e-05/0.1588, allocations: 15.8 kB / 0.5864 GB, free: 2.324 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001866/0.159, allocations: 55.95 kB / 0.5864 GB, free: 2.27 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002015/0.1592, allocations: 179.4 kB / 0.5866 GB, free: 2.094 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001338/0.1594, allocations: 57.58 kB / 0.5866 GB, free: 2.035 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.382e-05/0.1595, allocations: 55.73 kB / 0.5867 GB, free: 1.98 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.527e-05/0.1595, allocations: 51.7 kB / 0.5868 GB, free: 1.93 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.505e-05/0.1596, allocations: 15.94 kB / 0.5868 GB, free: 1.914 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.847e-05/0.1596, allocations: 8 kB / 0.5868 GB, free: 1.906 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.38e-05/0.1596, allocations: 35.89 kB / 0.5868 GB, free: 1.871 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.943e-05/0.1597, allocations: 63.61 kB / 0.5869 GB, free: 1.809 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001406/0.1598, allocations: 127.8 kB / 0.587 GB, free: 1.684 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1598, allocations: 0 / 0.587 GB, free: 1.684 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1599, allocations: 4 kB / 0.587 GB, free: 1.68 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.1599, allocations: 0 / 0.587 GB, free: 1.68 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.0006169/0.1605, allocations: 470.7 kB / 0.5874 GB, free: 1.172 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.1605, allocations: 8.031 kB / 0.5875 GB, free: 1.164 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.968e-05/0.1606, allocations: 46.73 kB / 0.5875 GB, free: 1.109 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.74e-05/0.1606, allocations: 16.75 kB / 0.5875 GB, free: 1.094 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002076/0.1608, allocations: 231.8 kB / 0.5877 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/0.1609, allocations: 20.36 kB / 0.5878 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.782e-05/0.1609, allocations: 12.38 kB / 0.5878 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002725/0.1612, allocations: 149.8 kB / 0.5879 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.1612, allocations: 0 / 0.5879 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/0.1612, allocations: 8 kB / 0.5879 GB, free: 0.625 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.1612, allocations: 4 kB / 0.5879 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002205/0.1614, allocations: 71.88 kB / 0.588 GB, free: 0.5508 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008145/0.1623, allocations: 0.7431 MB / 0.5887 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001405/0.1624, allocations: 50.5 kB / 0.5888 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.1625, allocations: 32.83 kB / 0.5888 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.885e-05/0.1626, allocations: 4 kB / 0.5888 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002524/0.1628, allocations: 134.6 kB / 0.5889 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.433e-06/0.1628, allocations: 0 / 0.5889 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004557/0.1633, allocations: 165.5 kB / 0.5891 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.86e-05/0.1634, allocations: 132.5 kB / 0.5892 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.1635, allocations: 202.9 kB / 0.5894 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.1635, allocations: 25.7 kB / 0.5894 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.193e-05/0.1636, allocations: 127.9 kB / 0.5895 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.197e-05/0.1637, allocations: 39.59 kB / 0.5896 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.601e-05/0.1637, allocations: 41.7 kB / 0.5896 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.55e-05/0.1638, allocations: 330.9 kB / 0.5899 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.164, allocations: 43.91 kB / 0.59 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001624/0.1641, allocations: 146.5 kB / 0.5901 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002903/0.1644, allocations: 202.3 kB / 0.5903 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1644, allocations: 0 / 0.5903 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003696/0.1648, allocations: 209 kB / 0.5905 GB, free: 13.67 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.1648, allocations: 8 kB / 0.5905 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.1648, allocations: 4 kB / 0.5905 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.1649, allocations: 4 kB / 0.5905 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.165, allocations: 32.42 kB / 0.5906 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.707e-06/0.165, allocations: 11.94 kB / 0.5906 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.1652, allocations: 31.81 kB / 0.5906 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.1652, allocations: 12 kB / 0.5906 GB, free: 13.57 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.0001141/0.1653, allocations: 133.7 kB / 0.5907 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.87e-05/0.1654, allocations: 23.95 kB / 0.5908 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.567e-05/0.1654, allocations: 25.39 kB / 0.5908 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.68e-06/0.1654, allocations: 3.984 kB / 0.5908 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.1654, allocations: 4 kB / 0.5908 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1655, allocations: 4 kB / 0.5908 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000885/0.1663, allocations: 0.5016 MB / 0.5913 GB, free: 12.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.1664, allocations: 3.938 kB / 0.5913 GB, free: 12.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.1665, allocations: 19.92 kB / 0.5913 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.558e-06/0.1665, allocations: 4 kB / 0.5913 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.1665, allocations: 4.312 kB / 0.5913 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.18e-06/0.1665, allocations: 11.94 kB / 0.5913 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1665, allocations: 0 / 0.5913 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004546/0.167, allocations: 356.1 kB / 0.5917 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.014e-05/0.1671, allocations: 101 kB / 0.5918 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.478e-05/0.1671, allocations: 0 / 0.5918 GB, free: 12.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001742/0.1673, allocations: 19.92 kB / 0.5918 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.774e-05/0.1673, allocations: 7.984 kB / 0.5918 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-06/0.1673, allocations: 4 kB / 0.5918 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.758e-05/0.1674, allocations: 144.6 kB / 0.5919 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1674, allocations: 4 kB / 0.5919 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003324/0.1678, allocations: 28 kB / 0.592 GB, free: 12.07 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.0007101/0.1685, allocations: 0.8966 MB / 0.5928 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002943/0.1688, allocations: 114.6 kB / 0.593 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1688, allocations: 0 / 0.593 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001385/0.169, allocations: 56.09 kB / 0.593 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00055/0.1695, allocations: 63.66 kB / 0.5931 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002321/0.1718, allocations: 2.303 MB / 0.5953 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.1721, allocations: 0.7281 MB / 0.596 GB, free: 7.672 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.456e-05/0.1722, allocations: 22.08 kB / 0.596 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.847e-05/0.1723, allocations: 55.42 kB / 0.5961 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of SimCode: time 2.41e-07/0.1723, allocations: 0 / 0.5961 GB, free: 7.598 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.151/2.324, allocations: 3.77 MB / 0.5998 GB, free: 3.977 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002049/2.324, allocations: 194.9 kB / 0.6 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.997/4.321, allocations: 0 / 0.6 GB, free: 3.727 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)