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.001095/0.001095, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00118/0.00118, allocations: 197.9 kB / 16.25 MB, free: 6.621 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.292/1.292, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7169/0.7169, allocations: 132.2 MB / 422.3 MB, free: 1.922 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 55.44 kB / 0.5013 GB, free: 4.102 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3348/0.3359, allocations: 80.21 MB / 0.5797 GB, free: 4.543 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002532/0.3385, allocations: 1.864 MB / 0.5815 GB, free: 3.238 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007911/0.3393, allocations: 0.5323 MB / 0.582 GB, free: 2.859 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.744e-05/0.3394, allocations: 6.875 kB / 0.582 GB, free: 2.855 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001185/0.3395, allocations: 13.78 kB / 0.582 GB, free: 2.848 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 6.385e-05/0.3396, allocations: 28.81 kB / 0.5821 GB, free: 2.824 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001837/0.3398, allocations: 63.02 kB / 0.5821 GB, free: 2.789 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001901/0.34, allocations: 163.8 kB / 0.5823 GB, free: 2.715 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001275/0.3401, allocations: 56.06 kB / 0.5823 GB, free: 2.688 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.807e-05/0.3402, allocations: 60.59 kB / 0.5824 GB, free: 2.652 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.558e-05/0.3403, allocations: 57.34 kB / 0.5825 GB, free: 2.621 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.351e-05/0.3403, allocations: 10.84 kB / 0.5825 GB, free: 2.621 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.034e-05/0.3403, allocations: 10 kB / 0.5825 GB, free: 2.621 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.009e-05/0.3404, allocations: 33.42 kB / 0.5825 GB, free: 2.598 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.486e-05/0.3404, allocations: 65.59 kB / 0.5826 GB, free: 2.555 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000143/0.3406, allocations: 131.9 kB / 0.5827 GB, free: 2.492 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3406, allocations: 0 / 0.5827 GB, free: 2.492 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.3406, allocations: 0 / 0.5827 GB, free: 2.492 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.3406, allocations: 0 / 0.5827 GB, free: 2.492 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.0005637/0.3412, allocations: 473.6 kB / 0.5831 GB, free: 2.066 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.3412, allocations: 10.72 kB / 0.5832 GB, free: 2.066 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.421e-05/0.3412, allocations: 43.61 kB / 0.5832 GB, free: 2.02 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.755e-05/0.3413, allocations: 26.92 kB / 0.5832 GB, free: 2.004 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001715/0.3415, allocations: 227.7 kB / 0.5834 GB, free: 1.777 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.3415, allocations: 5.688 kB / 0.5834 GB, free: 1.777 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.622e-05/0.3415, allocations: 12.19 kB / 0.5835 GB, free: 1.773 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002575/0.3418, allocations: 154.1 kB / 0.5836 GB, free: 1.664 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.3418, allocations: 1.531 kB / 0.5836 GB, free: 1.664 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.3418, allocations: 5.688 kB / 0.5836 GB, free: 1.66 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.3418, allocations: 3.969 kB / 0.5836 GB, free: 1.66 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002142/0.342, allocations: 68 kB / 0.5837 GB, free: 1.645 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006852/0.3427, allocations: 0.7496 MB / 0.5844 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001289/0.3429, allocations: 44.67 kB / 0.5845 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.343, allocations: 38.38 kB / 0.5845 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.369e-05/0.343, allocations: 1.453 kB / 0.5845 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002271/0.3433, allocations: 130.7 kB / 0.5846 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of pre-optimization done (n=11): time 1.422e-06/0.3433, allocations: 0 / 0.5846 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004278/0.3437, allocations: 161.1 kB / 0.5848 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.562e-05/0.3437, allocations: 140 kB / 0.5849 GB, free: 0.5781 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001542/0.3439, allocations: 204.1 kB / 0.5851 GB, free: 448 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.3439, allocations: 27.47 kB / 0.5851 GB, free: 416 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.479e-05/0.344, allocations: 133.8 kB / 0.5852 GB, free: 292 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.759e-05/0.344, allocations: 31.47 kB / 0.5853 GB, free: 268 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.397e-05/0.3441, allocations: 39.83 kB / 0.5853 GB, free: 240 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.626e-05/0.3442, allocations: 329.5 kB / 0.5856 GB, free: 15.91 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001199/0.3443, allocations: 37.34 kB / 0.5857 GB, free: 15.91 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.3445, allocations: 147 kB / 0.5858 GB, free: 15.75 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002967/0.3448, allocations: 209.5 kB / 0.586 GB, free: 15.56 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.3448, allocations: 1.219 kB / 0.586 GB, free: 15.56 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003667/0.3452, allocations: 204.7 kB / 0.5862 GB, free: 15.46 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.3452, allocations: 6.531 kB / 0.5862 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.383e-06/0.3452, allocations: 8.266 kB / 0.5862 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.3452, allocations: 5.719 kB / 0.5862 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/0.3453, allocations: 37.42 kB / 0.5863 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.227e-06/0.3454, allocations: 5.422 kB / 0.5863 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001374/0.3455, allocations: 28.2 kB / 0.5863 GB, free: 15.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.539e-05/0.3455, allocations: 17.25 kB / 0.5863 GB, free: 15.43 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 (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.000106/0.3456, allocations: 139.2 kB / 0.5864 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.92e-05/0.3457, allocations: 16.56 kB / 0.5865 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.312e-05/0.3457, allocations: 20.88 kB / 0.5865 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.3457, allocations: 1.938 kB / 0.5865 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3457, allocations: 2.984 kB / 0.5865 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.3457, allocations: 2.094 kB / 0.5865 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007116/0.3465, allocations: 0.5089 MB / 0.587 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.3465, allocations: 1.062 kB / 0.587 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001191/0.3466, allocations: 24.77 kB / 0.587 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3466, allocations: 5.312 kB / 0.587 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.3466, allocations: 3.406 kB / 0.587 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.3466, allocations: 5.969 kB / 0.587 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3466, allocations: 1.375 kB / 0.587 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004837/0.3471, allocations: 356.7 kB / 0.5874 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.963e-05/0.3472, allocations: 96.05 kB / 0.5875 GB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.846e-05/0.3472, allocations: 10.28 kB / 0.5875 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00017/0.3474, allocations: 15.91 kB / 0.5875 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.494e-05/0.3474, allocations: 13.8 kB / 0.5875 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.3475, allocations: 5.062 kB / 0.5875 GB, free: 14.45 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001122/0.3476, allocations: 142.5 kB / 0.5876 GB, free: 14.35 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3476, allocations: 0 / 0.5876 GB, free: 14.35 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003149/0.3479, allocations: 27.17 kB / 0.5877 GB, free: 14.35 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 (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.0007163/0.3486, allocations: 0.912 MB / 0.5885 GB, free: 13.53 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003/0.3489, allocations: 114.7 kB / 0.5887 GB, free: 13.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3489, allocations: 0 / 0.5887 GB, free: 13.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001414/0.3491, allocations: 54.95 kB / 0.5887 GB, free: 13.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000533/0.3496, allocations: 69.44 kB / 0.5888 GB, free: 13.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002452/0.3521, allocations: 2.282 MB / 0.591 GB, free: 11.55 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000275/0.3524, allocations: 0.7245 MB / 0.5917 GB, free: 10.85 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 8.507e-05/0.3525, allocations: 19.94 kB / 0.5917 GB, free: 10.85 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.229e-05/0.3526, allocations: 55.16 kB / 0.5918 GB, free: 10.81 MB / 446.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3526, allocations: 0 / 0.5918 GB, free: 10.81 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09311/0.4457, allocations: 3.771 MB / 0.5955 GB, free: 10.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001776/0.4459, allocations: 202.2 kB / 0.5957 GB, free: 9.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.691/2.137, allocations: 0 / 0.5957 GB, free: 9.84 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/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)