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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001762/0.001762, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9366/0.9366, allocations: 133.4 MB / 146.7 MB, free: 10.79 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.603/1.603, allocations: 221.3 MB / 400.4 MB, free: 5.844 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 97.19 kB / 483.3 MB, free: 5.867 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 3.341e-05/3.356e-05, allocations: 4.062 kB / 0.5601 GB, free: 87.84 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1657/0.1657, allocations: 82.32 MB / 0.6405 GB, free: 7.711 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5717/0.7375, allocations: 113.2 MB / 0.751 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001876/0.7377, allocations: 76.98 kB / 0.7511 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.008849/0.7465, allocations: 3.519 MB / 0.7545 GB, free: 27.33 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.445e-06/0.7466, allocations: 0 / 0.7545 GB, free: 27.33 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.443e-05/0.7466, allocations: 8.594 kB / 0.7546 GB, free: 27.33 MB / 0.5105 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.0006788/0.7473, allocations: 440.7 kB / 0.755 GB, free: 26.95 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.7474, allocations: 11.53 kB / 0.755 GB, free: 26.95 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.601e-05/0.7474, allocations: 41.25 kB / 0.755 GB, free: 26.91 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.023e-05/0.7475, allocations: 19.59 kB / 0.755 GB, free: 26.89 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003181/0.7478, allocations: 230.4 kB / 0.7553 GB, free: 26.68 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.743e-05/0.7479, allocations: 11.84 kB / 0.7553 GB, free: 26.67 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.166e-05/0.7479, allocations: 23.16 kB / 0.7553 GB, free: 26.66 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002285/0.7481, allocations: 137.7 kB / 0.7554 GB, free: 26.59 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.7482, allocations: 0 / 0.7554 GB, free: 26.59 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.7482, allocations: 5.703 kB / 0.7554 GB, free: 26.59 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.753e-06/0.7482, allocations: 3.938 kB / 0.7554 GB, free: 26.59 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001044/0.7483, allocations: 42.28 kB / 0.7555 GB, free: 26.58 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001037/0.7493, allocations: 0.7671 MB / 0.7562 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 7.425e-05/0.7494, allocations: 34.05 kB / 0.7563 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.998e-05/0.7495, allocations: 27.73 kB / 0.7563 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.7495, allocations: 0 / 0.7563 GB, free: 25.92 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001592/0.7497, allocations: 103.8 kB / 0.7564 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=11): time 1.774e-06/0.7497, allocations: 0 / 0.7564 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of matching and sorting (n=11): time 0.0002501/0.7499, allocations: 111.2 kB / 0.7565 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.267e-05/0.75, allocations: 135.8 kB / 0.7566 GB, free: 25.64 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.7502, allocations: 185 kB / 0.7568 GB, free: 25.53 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.33e-05/0.7502, allocations: 33.52 kB / 0.7568 GB, free: 25.49 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 8.557e-05/0.7503, allocations: 125.6 kB / 0.7569 GB, free: 25.4 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.111e-05/0.7504, allocations: 37.45 kB / 0.757 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.125e-06/0.7504, allocations: 7.531 kB / 0.757 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001387/0.7505, allocations: 328 kB / 0.7573 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.311e-05/0.7506, allocations: 26.09 kB / 0.7573 GB, free: 25.06 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.798e-05/0.7507, allocations: 132.6 kB / 0.7575 GB, free: 24.92 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.588e-05/0.7508, allocations: 41.48 kB / 0.7575 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-06/0.7508, allocations: 3.844 kB / 0.7575 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002588/0.751, allocations: 181.8 kB / 0.7577 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.7511, allocations: 9.156 kB / 0.7577 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/0.7511, allocations: 7.875 kB / 0.7577 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.7511, allocations: 7.844 kB / 0.7577 GB, free: 24.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.7513, allocations: 40.78 kB / 0.7577 GB, free: 24.83 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.12e-05/0.7513, allocations: 7.844 kB / 0.7577 GB, free: 24.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001551/0.7514, allocations: 26.05 kB / 0.7578 GB, free: 24.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.7515, allocations: 15.08 kB / 0.7578 GB, free: 24.82 MB / 0.5105 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,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete 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.0001042/0.7516, allocations: 124.7 kB / 0.7579 GB, free: 24.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.281e-05/0.7516, allocations: 15.53 kB / 0.7579 GB, free: 24.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.483e-05/0.7517, allocations: 24.64 kB / 0.7579 GB, free: 24.69 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.7517, allocations: 0 / 0.7579 GB, free: 24.69 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/0.7517, allocations: 3.719 kB / 0.7579 GB, free: 24.69 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.7517, allocations: 0 / 0.7579 GB, free: 24.69 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006733/0.7524, allocations: 0.4938 MB / 0.7584 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.7524, allocations: 0 / 0.7584 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.7525, allocations: 20.61 kB / 0.7584 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.7525, allocations: 0 / 0.7584 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.7526, allocations: 6.156 kB / 0.7584 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.7526, allocations: 3.938 kB / 0.7585 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.7526, allocations: 10.59 kB / 0.7585 GB, free: 24.3 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003342/0.7529, allocations: 354.9 kB / 0.7588 GB, free: 24.01 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.084e-05/0.753, allocations: 102.6 kB / 0.7589 GB, free: 23.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.452e-05/0.753, allocations: 0 / 0.7589 GB, free: 23.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001828/0.7532, allocations: 19.75 kB / 0.7589 GB, free: 23.9 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.782e-05/0.7533, allocations: 19.16 kB / 0.7589 GB, free: 23.89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.758e-06/0.7533, allocations: 10.17 kB / 0.7589 GB, free: 23.89 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0001102/0.7534, allocations: 137.1 kB / 0.7591 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7534, allocations: 0 / 0.7591 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003214/0.7537, allocations: 29.75 kB / 0.7591 GB, free: 23.81 MB / 0.5105 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,intWitRes1.trigger,$whenCondition2) * Number of discrete 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.0007214/0.7544, allocations: 1.101 MB / 0.7602 GB, free: 22.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001811/0.7546, allocations: 91.58 kB / 0.7603 GB, free: 22.78 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.7547, allocations: 0 / 0.7603 GB, free: 22.78 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 7.185e-05/0.7547, allocations: 36.33 kB / 0.7603 GB, free: 22.78 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004159/0.7552, allocations: 60.17 kB / 0.7604 GB, free: 22.77 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006737/0.7558, allocations: 305.6 kB / 0.7607 GB, free: 22.58 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003071/0.7562, allocations: 0.7226 MB / 0.7614 GB, free: 21.89 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 8.678e-05/0.7563, allocations: 27.23 kB / 0.7614 GB, free: 21.88 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.134e-05/0.7563, allocations: 48.98 kB / 0.7614 GB, free: 21.87 MB / 0.5105 GB Notification: Performance of SimCode: time 3.7e-07/0.7563, allocations: 3.938 kB / 0.7614 GB, free: 21.87 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01564/0.772, allocations: 3.503 MB / 0.7649 GB, free: 20.25 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001571/0.7722, allocations: 152.3 kB / 0.765 GB, free: 20.02 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.686/2.458, allocations: 0 / 0.765 GB, free: 20.02 MB / 0.5105 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)