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.001541/0.001542, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001961/0.001962, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.196/2.196, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.172/1.172, allocations: 132.2 MB / 423.2 MB, free: 2.191 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0007674/0.0007676, allocations: 8.75 kB / 0.5033 GB, free: 4.207 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6294/0.6302, allocations: 81.58 MB / 0.583 GB, free: 4.02 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003114/0.6334, allocations: 1.473 MB / 0.5844 GB, free: 2.953 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00155/0.635, allocations: 0.5199 MB / 0.5849 GB, free: 2.586 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001387/0.6351, allocations: 2.25 kB / 0.5849 GB, free: 2.586 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 4.186e-05/0.6352, allocations: 10.92 kB / 0.5849 GB, free: 2.578 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001997/0.6354, allocations: 34.27 kB / 0.585 GB, free: 2.555 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003347/0.6357, allocations: 51.98 kB / 0.585 GB, free: 2.531 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003838/0.6361, allocations: 121.1 kB / 0.5851 GB, free: 2.469 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002058/0.6364, allocations: 36.47 kB / 0.5852 GB, free: 2.457 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001219/0.6365, allocations: 39.95 kB / 0.5852 GB, free: 2.438 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001638/0.6367, allocations: 51.75 kB / 0.5852 GB, free: 2.41 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.966e-05/0.6367, allocations: 3.438 kB / 0.5852 GB, free: 2.41 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.823e-05/0.6368, allocations: 3.719 kB / 0.5852 GB, free: 2.41 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.023e-05/0.6368, allocations: 21.89 kB / 0.5853 GB, free: 2.398 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.776e-05/0.6369, allocations: 46.2 kB / 0.5853 GB, free: 2.355 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002218/0.6372, allocations: 82.86 kB / 0.5854 GB, free: 2.336 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.6372, allocations: 4.906 kB / 0.5854 GB, free: 2.332 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.6372, allocations: 0 / 0.5854 GB, free: 2.332 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.6372, allocations: 0 / 0.5854 GB, free: 2.332 MB / 430.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.0009853/0.6382, allocations: 454.8 kB / 0.5858 GB, free: 1.922 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.054e-05/0.6383, allocations: 14.14 kB / 0.5858 GB, free: 1.918 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.978e-05/0.6384, allocations: 44.44 kB / 0.5859 GB, free: 1.871 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.281e-05/0.6385, allocations: 21.19 kB / 0.5859 GB, free: 1.859 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00039/0.6389, allocations: 234.5 kB / 0.5861 GB, free: 1.625 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.592e-05/0.6389, allocations: 8.281 kB / 0.5861 GB, free: 1.621 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.862e-05/0.639, allocations: 16.83 kB / 0.5862 GB, free: 1.613 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004939/0.6395, allocations: 150.1 kB / 0.5863 GB, free: 1.512 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.6395, allocations: 0 / 0.5863 GB, free: 1.512 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.607e-05/0.6396, allocations: 6.625 kB / 0.5863 GB, free: 1.508 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.12e-05/0.6396, allocations: 6.781 kB / 0.5863 GB, free: 1.504 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004763/0.6401, allocations: 86.53 kB / 0.5864 GB, free: 1.48 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001434/0.6415, allocations: 0.7402 MB / 0.5871 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002482/0.6418, allocations: 52.55 kB / 0.5872 GB, free: 0.7773 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.496e-05/0.6419, allocations: 5.75 kB / 0.5872 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004427/0.6423, allocations: 124.1 kB / 0.5873 GB, free: 0.6797 MB / 430.1 MB Notification: Performance of pre-optimization done (n=11): time 3.056e-06/0.6423, allocations: 0 / 0.5873 GB, free: 0.6797 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.0009323/0.6433, allocations: 182.2 kB / 0.5875 GB, free: 0.6055 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.928e-05/0.6434, allocations: 135.8 kB / 0.5876 GB, free: 456 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003053/0.6437, allocations: 199.4 kB / 0.5878 GB, free: 316 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.612e-05/0.6437, allocations: 30.91 kB / 0.5878 GB, free: 280 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001072/0.6439, allocations: 129.4 kB / 0.5879 GB, free: 160 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.543e-05/0.6439, allocations: 36.11 kB / 0.588 GB, free: 132 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.191e-05/0.644, allocations: 4 kB / 0.588 GB, free: 128 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.6442, allocations: 329.6 kB / 0.5883 GB, free: 15.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002567/0.6444, allocations: 42.62 kB / 0.5883 GB, free: 15.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003898/0.6448, allocations: 148.3 kB / 0.5885 GB, free: 15.64 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003113/0.6452, allocations: 67.36 kB / 0.5885 GB, free: 15.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.6452, allocations: 1.375 kB / 0.5885 GB, free: 15.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0009137/0.6461, allocations: 213.3 kB / 0.5887 GB, free: 15.52 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.478e-05/0.6462, allocations: 6.219 kB / 0.5887 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.163e-05/0.6462, allocations: 8.844 kB / 0.5888 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.994e-05/0.6463, allocations: 9.844 kB / 0.5888 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002794/0.6466, allocations: 40.41 kB / 0.5888 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.949e-05/0.6466, allocations: 13.25 kB / 0.5888 GB, free: 15.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003535/0.647, allocations: 29.11 kB / 0.5888 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.912e-05/0.647, allocations: 13 kB / 0.5889 GB, free: 15.49 MB / 446.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 ($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.0002406/0.6473, allocations: 142.4 kB / 0.589 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.78e-05/0.6474, allocations: 16.16 kB / 0.589 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.783e-05/0.6475, allocations: 22.3 kB / 0.589 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.6475, allocations: 1.375 kB / 0.589 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.23e-05/0.6475, allocations: 2.266 kB / 0.589 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/0.6476, allocations: 5.984 kB / 0.589 GB, free: 15.32 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001642/0.6492, allocations: 0.5226 MB / 0.5895 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.6492, allocations: 1.422 kB / 0.5895 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002648/0.6495, allocations: 26.44 kB / 0.5896 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.638e-06/0.6496, allocations: 2.125 kB / 0.5896 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.17e-05/0.6496, allocations: 9.953 kB / 0.5896 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.033e-05/0.6496, allocations: 5.484 kB / 0.5896 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.6497, allocations: 2.422 kB / 0.5896 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.6508, allocations: 403.8 kB / 0.59 GB, free: 14.56 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.651, allocations: 95.62 kB / 0.5901 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.34e-05/0.651, allocations: 10.98 kB / 0.5901 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000372/0.6514, allocations: 21.31 kB / 0.5901 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.558e-05/0.6515, allocations: 9.531 kB / 0.5901 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.117e-05/0.6516, allocations: 9.391 kB / 0.5901 GB, free: 14.44 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002468/0.6518, allocations: 138.4 kB / 0.5903 GB, free: 14.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.6519, allocations: 0 / 0.5903 GB, free: 14.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000661/0.6525, allocations: 27.56 kB / 0.5903 GB, free: 14.34 MB / 446.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 (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.001743/0.6543, allocations: 1.151 MB / 0.5914 GB, free: 13.28 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0007256/0.655, allocations: 123.1 kB / 0.5915 GB, free: 13.25 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/0.6551, allocations: 1.375 kB / 0.5915 GB, free: 13.25 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000333/0.6554, allocations: 60.84 kB / 0.5916 GB, free: 13.23 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008552/0.6563, allocations: 65.33 kB / 0.5916 GB, free: 13.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004969/0.6613, allocations: 3.502 MB / 0.5951 GB, free: 10.03 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005649/0.6619, allocations: 0.7291 MB / 0.5958 GB, free: 9.332 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001978/0.6621, allocations: 20.77 kB / 0.5958 GB, free: 9.328 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.6623, allocations: 49.3 kB / 0.5958 GB, free: 9.293 MB / 446.1 MB Notification: Performance of SimCode: time 1.262e-06/0.6623, allocations: 0 / 0.5958 GB, free: 9.293 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02686/0.6892, allocations: 3.533 MB / 0.5993 GB, free: 8.707 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004275/0.6897, allocations: 171.2 kB / 0.5995 GB, free: 8.469 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.723/3.412, allocations: 0 / 0.5995 GB, free: 8.469 MB / 446.1 MB (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/linux/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) Environment - environmentSimulation: