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.0008164/0.0008166, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.0008869/0.000887, allocations: 168.7 kB / 15.95 MB, free: 200 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.338/1.338, allocations: 223.2 MB / 240 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9215/0.9215, allocations: 135.3 MB / 426.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003707/0.0003708, allocations: 8 kB / 0.5071 GB, free: 5.168 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1591/0.1595, allocations: 82.31 MB / 0.5875 GB, free: 3.035 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002005/0.1616, allocations: 1.481 MB / 0.5889 GB, free: 1.539 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009194/0.1625, allocations: 0.4991 MB / 0.5894 GB, free: 1.035 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.1627, allocations: 7.938 kB / 0.5894 GB, free: 1.027 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001198/0.1628, allocations: 19.78 kB / 0.5894 GB, free: 1.008 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.226e-05/0.1629, allocations: 23.8 kB / 0.5895 GB, free: 0.9844 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002111/0.1631, allocations: 55.86 kB / 0.5895 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002129/0.1633, allocations: 147.5 kB / 0.5896 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.1634, allocations: 45.83 kB / 0.5897 GB, free: 0.7383 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.917e-05/0.1635, allocations: 39.8 kB / 0.5897 GB, free: 0.6992 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.088e-05/0.1636, allocations: 51.64 kB / 0.5898 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.152e-05/0.1636, allocations: 4 kB / 0.5898 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.802e-05/0.1637, allocations: 4 kB / 0.5898 GB, free: 0.6406 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.609e-05/0.1637, allocations: 23.91 kB / 0.5898 GB, free: 0.6172 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.545e-05/0.1637, allocations: 45.64 kB / 0.5899 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001155/0.1639, allocations: 84 kB / 0.5899 GB, free: 496 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.1639, allocations: 4 kB / 0.5899 GB, free: 492 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1639, allocations: 4 kB / 0.5899 GB, free: 488 kB / 494.1 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.1639, allocations: 0 / 0.5899 GB, free: 488 kB / 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.0006744/0.1646, allocations: 450.8 kB / 0.5904 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.1646, allocations: 8.031 kB / 0.5904 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.657e-05/0.1647, allocations: 54.48 kB / 0.5904 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.94e-05/0.1647, allocations: 19.81 kB / 0.5904 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002401/0.165, allocations: 226.5 kB / 0.5907 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.165, allocations: 8 kB / 0.5907 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.725e-05/0.165, allocations: 12 kB / 0.5907 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002984/0.1653, allocations: 153.1 kB / 0.5908 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.1653, allocations: 3.984 kB / 0.5908 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.1654, allocations: 4 kB / 0.5908 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.74e-06/0.1654, allocations: 4 kB / 0.5908 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002216/0.1656, allocations: 83.83 kB / 0.5909 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008894/0.1665, allocations: 0.7471 MB / 0.5917 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001396/0.1667, allocations: 54.5 kB / 0.5917 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.1668, allocations: 36.83 kB / 0.5917 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.1668, allocations: 8 kB / 0.5917 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000278/0.1671, allocations: 124.2 kB / 0.5919 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.313e-06/0.1671, allocations: 4 kB / 0.5919 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004556/0.1676, allocations: 177.3 kB / 0.592 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.057e-05/0.1677, allocations: 144.7 kB / 0.5922 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001891/0.1679, allocations: 195 kB / 0.5924 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.1679, allocations: 29.7 kB / 0.5924 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 9.9e-05/0.168, allocations: 131.8 kB / 0.5925 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.435e-05/0.168, allocations: 35.69 kB / 0.5925 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.305e-06/0.1681, allocations: 4 kB / 0.5926 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.1682, allocations: 326.8 kB / 0.5929 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.1683, allocations: 48.34 kB / 0.5929 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001851/0.1685, allocations: 149.1 kB / 0.5931 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001448/0.1687, allocations: 63.92 kB / 0.5931 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1687, allocations: 0 / 0.5931 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003798/0.1691, allocations: 221.4 kB / 0.5933 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.1691, allocations: 8 kB / 0.5933 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.1691, allocations: 4 kB / 0.5933 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.364e-05/0.1691, allocations: 4.25 kB / 0.5933 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.1693, allocations: 39.92 kB / 0.5934 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.313e-05/0.1693, allocations: 15.94 kB / 0.5934 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001336/0.1694, allocations: 27.83 kB / 0.5934 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.1695, allocations: 24.02 kB / 0.5934 GB, free: 12.55 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 ($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 0.0001116/0.1696, allocations: 125.8 kB / 0.5936 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.566e-05/0.1696, allocations: 15.81 kB / 0.5936 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.709e-05/0.1697, allocations: 25.39 kB / 0.5936 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.1697, allocations: 3.938 kB / 0.5936 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.1697, allocations: 0 / 0.5936 GB, free: 12.37 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.1697, allocations: 7.953 kB / 0.5936 GB, free: 12.36 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007294/0.1704, allocations: 0.529 MB / 0.5941 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1704, allocations: 4 kB / 0.5941 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/0.1706, allocations: 23.98 kB / 0.5942 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.9e-06/0.1706, allocations: 4 kB / 0.5942 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.1706, allocations: 3.953 kB / 0.5942 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/0.1706, allocations: 4 kB / 0.5942 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1706, allocations: 0 / 0.5942 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004954/0.1711, allocations: 368.2 kB / 0.5945 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.474e-05/0.1712, allocations: 96.95 kB / 0.5946 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.461e-05/0.1712, allocations: 4 kB / 0.5946 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001631/0.1714, allocations: 19.94 kB / 0.5946 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.734e-05/0.1715, allocations: 15.98 kB / 0.5946 GB, free: 11.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.748e-06/0.1715, allocations: 7.938 kB / 0.5947 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001066/0.1716, allocations: 136.6 kB / 0.5948 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1716, allocations: 0 / 0.5948 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003319/0.1719, allocations: 31.98 kB / 0.5948 GB, free: 11.03 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 (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 0.0007597/0.1727, allocations: 0.9162 MB / 0.5957 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002868/0.173, allocations: 120 kB / 0.5958 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.173, allocations: 0 / 0.5958 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001341/0.1732, allocations: 52.91 kB / 0.5959 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005529/0.1737, allocations: 77.92 kB / 0.596 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.1754, allocations: 1.11 MB / 0.597 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.1757, allocations: 0.7206 MB / 0.5977 GB, free: 7.875 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.939e-05/0.1757, allocations: 21.97 kB / 0.5978 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.536e-05/0.1758, allocations: 47.42 kB / 0.5978 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of SimCode: time 2.6e-07/0.1758, allocations: 0 / 0.5978 GB, free: 7.809 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01332/0.1892, allocations: 3.541 MB / 0.6013 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003162/0.1895, allocations: 184.1 kB / 0.6014 GB, free: 4.184 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.703/1.893, allocations: 0 / 0.6014 GB, free: 4.184 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/linux/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) Environment - environmentSimulation: