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.005364/0.005364, allocations: 103.1 kB / 15.73 MB, free: 6.047 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.001181/0.001181, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8063/0.8063, allocations: 132.2 MB / 422.7 MB, free: 6.566 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002122/0.002122, allocations: 72.83 kB / 0.5809 GB, free: 24.32 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1637/0.1659, allocations: 80.2 MB / 0.6592 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003115/0.169, allocations: 1.819 MB / 0.661 GB, free: 9.039 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001109/0.1702, allocations: 0.5415 MB / 0.6615 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001552/0.1703, allocations: 3.938 kB / 0.6615 GB, free: 8.488 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001698/0.1705, allocations: 23.73 kB / 0.6615 GB, free: 8.465 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000109/0.1707, allocations: 31.72 kB / 0.6616 GB, free: 8.434 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002856/0.171, allocations: 67.91 kB / 0.6616 GB, free: 8.367 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003014/0.1713, allocations: 171.4 kB / 0.6618 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000205/0.1715, allocations: 49.66 kB / 0.6618 GB, free: 8.148 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.1716, allocations: 55.72 kB / 0.6619 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001058/0.1717, allocations: 67.62 kB / 0.6619 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.011e-05/0.1717, allocations: 8 kB / 0.662 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.389e-05/0.1718, allocations: 12 kB / 0.662 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.919e-05/0.1718, allocations: 23.92 kB / 0.662 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 7.993e-05/0.1719, allocations: 63.61 kB / 0.662 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002025/0.1721, allocations: 134.2 kB / 0.6622 GB, free: 7.793 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1721, allocations: 0 / 0.6622 GB, free: 7.793 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.553e-06/0.1721, allocations: 0 / 0.6622 GB, free: 7.793 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.594e-06/0.1721, allocations: 0 / 0.6622 GB, free: 7.793 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.0007698/0.1729, allocations: 491.4 kB / 0.6626 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.173, allocations: 8.031 kB / 0.6627 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.29e-05/0.173, allocations: 38.75 kB / 0.6627 GB, free: 7.211 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.92e-05/0.1731, allocations: 16.75 kB / 0.6627 GB, free: 7.195 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003456/0.1734, allocations: 228 kB / 0.6629 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.1734, allocations: 12.38 kB / 0.6629 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.087e-05/0.1735, allocations: 16.31 kB / 0.663 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002808/0.1738, allocations: 146 kB / 0.6631 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.1738, allocations: 0 / 0.6631 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.1738, allocations: 8 kB / 0.6631 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.1738, allocations: 4 kB / 0.6631 GB, free: 6.73 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002308/0.1741, allocations: 74.28 kB / 0.6632 GB, free: 6.66 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009847/0.1751, allocations: 0.743 MB / 0.6639 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001493/0.1752, allocations: 42.56 kB / 0.6639 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.1753, allocations: 40.81 kB / 0.664 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.04e-05/0.1754, allocations: 0 / 0.664 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002974/0.1757, allocations: 133.1 kB / 0.6641 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.663e-06/0.1757, allocations: 4 kB / 0.6641 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0005044/0.1762, allocations: 165.3 kB / 0.6643 GB, free: 5.434 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.993e-05/0.1763, allocations: 140.7 kB / 0.6644 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002004/0.1765, allocations: 210.6 kB / 0.6646 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.065e-05/0.1765, allocations: 29.7 kB / 0.6646 GB, free: 5.012 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.326e-05/0.1766, allocations: 120.1 kB / 0.6647 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.575e-05/0.1767, allocations: 39.53 kB / 0.6648 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.684e-05/0.1768, allocations: 45.61 kB / 0.6648 GB, free: 4.801 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1769, allocations: 330.8 kB / 0.6651 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.177, allocations: 39.97 kB / 0.6652 GB, free: 4.43 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001778/0.1772, allocations: 150.5 kB / 0.6653 GB, free: 4.23 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002969/0.1775, allocations: 198.3 kB / 0.6655 GB, free: 3.984 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.389e-06/0.1775, allocations: 4 kB / 0.6655 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003933/0.1779, allocations: 205.2 kB / 0.6657 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.1779, allocations: 8 kB / 0.6657 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.178, allocations: 0 / 0.6657 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.178, allocations: 8 kB / 0.6657 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.1781, allocations: 31.92 kB / 0.6658 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.1781, allocations: 4 kB / 0.6658 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001475/0.1783, allocations: 32.17 kB / 0.6658 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.423e-05/0.1783, allocations: 12 kB / 0.6658 GB, free: 3.68 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.0001292/0.1784, allocations: 146.2 kB / 0.6659 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.055e-05/0.1785, allocations: 15.81 kB / 0.666 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.892e-05/0.1785, allocations: 21.39 kB / 0.666 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.1785, allocations: 4 kB / 0.666 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1785, allocations: 256 / 0.666 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.758e-06/0.1786, allocations: 0 / 0.666 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000792/0.1794, allocations: 0.5248 MB / 0.6665 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1794, allocations: 0 / 0.6665 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001334/0.1795, allocations: 15.98 kB / 0.6665 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1795, allocations: 0 / 0.6665 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.1795, allocations: 8 kB / 0.6665 GB, free: 2.883 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.1796, allocations: 7.875 kB / 0.6665 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.1796, allocations: 4 kB / 0.6665 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004897/0.1801, allocations: 352.3 kB / 0.6669 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.403e-05/0.1801, allocations: 88.92 kB / 0.6669 GB, free: 2.398 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.078e-05/0.1802, allocations: 16.41 kB / 0.667 GB, free: 2.383 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001639/0.1803, allocations: 11.92 kB / 0.667 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.048e-05/0.1804, allocations: 15.98 kB / 0.667 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.1804, allocations: 4 kB / 0.667 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001148/0.1805, allocations: 135.2 kB / 0.6671 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1805, allocations: 0 / 0.6671 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003319/0.1809, allocations: 35.84 kB / 0.6672 GB, free: 2.184 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.000794/0.1817, allocations: 0.9044 MB / 0.668 GB, free: 1.246 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003044/0.182, allocations: 115.8 kB / 0.6682 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.182, allocations: 4 kB / 0.6682 GB, free: 1.129 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001362/0.1821, allocations: 48.91 kB / 0.6682 GB, free: 1.082 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005639/0.1827, allocations: 66.64 kB / 0.6683 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002675/0.1854, allocations: 2.271 MB / 0.6705 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.1857, allocations: 0.7242 MB / 0.6712 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.268e-05/0.1858, allocations: 17.48 kB / 0.6712 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.148e-05/0.1859, allocations: 51.42 kB / 0.6713 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of SimCode: time 3.8e-07/0.1859, allocations: 0 / 0.6713 GB, free: 13.75 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02385/0.2098, allocations: 4.099 MB / 0.6753 GB, free: 9.766 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.809/8.019, allocations: 7.922 kB / 0.6753 GB, free: 9.758 MB / 0.5137 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)