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.0009559/0.0009562, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001017/0.001017, allocations: 168.7 kB / 15.95 MB, free: 204 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.368/1.368, allocations: 223.2 MB / 240 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7631/0.7631, allocations: 132.3 MB / 423.4 MB, free: 2.094 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003089/0.0003089, allocations: 8 kB / 0.5035 GB, free: 4.184 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3971/0.3974, allocations: 81.58 MB / 0.5832 GB, free: 4.012 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.001733/0.3992, allocations: 1.483 MB / 0.5846 GB, free: 2.934 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007684/0.4, allocations: 0.5144 MB / 0.5851 GB, free: 2.57 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.017e-05/0.4001, allocations: 5.625 kB / 0.5851 GB, free: 2.566 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001086/0.4002, allocations: 18.12 kB / 0.5851 GB, free: 2.555 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 6.212e-05/0.4003, allocations: 26.81 kB / 0.5852 GB, free: 2.535 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001762/0.4005, allocations: 52.8 kB / 0.5852 GB, free: 2.512 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002031/0.4007, allocations: 150.2 kB / 0.5853 GB, free: 2.441 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.4008, allocations: 39.33 kB / 0.5854 GB, free: 2.43 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.75e-05/0.4009, allocations: 41.39 kB / 0.5854 GB, free: 2.41 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.14e-05/0.401, allocations: 48.27 kB / 0.5855 GB, free: 2.387 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.926e-05/0.401, allocations: 3.25 kB / 0.5855 GB, free: 2.387 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.621e-05/0.401, allocations: 8.188 kB / 0.5855 GB, free: 2.383 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.521e-05/0.401, allocations: 21.31 kB / 0.5855 GB, free: 2.371 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.533e-05/0.4011, allocations: 46.64 kB / 0.5855 GB, free: 2.328 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001183/0.4012, allocations: 91.62 kB / 0.5856 GB, free: 2.301 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.4012, allocations: 0 / 0.5856 GB, free: 2.301 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.4012, allocations: 1.031 kB / 0.5856 GB, free: 2.301 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.027e-06/0.4012, allocations: 0 / 0.5856 GB, free: 2.301 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.0005589/0.4018, allocations: 458.4 kB / 0.5861 GB, free: 1.887 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.4018, allocations: 8.719 kB / 0.5861 GB, free: 1.887 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.551e-05/0.4019, allocations: 45.19 kB / 0.5861 GB, free: 1.84 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.735e-05/0.4019, allocations: 21.84 kB / 0.5861 GB, free: 1.828 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001894/0.4021, allocations: 225.8 kB / 0.5864 GB, free: 1.602 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.468e-06/0.4021, allocations: 8.781 kB / 0.5864 GB, free: 1.598 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.896e-05/0.4022, allocations: 12.77 kB / 0.5864 GB, free: 1.594 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002729/0.4025, allocations: 154.2 kB / 0.5865 GB, free: 1.488 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.4025, allocations: 0.9688 kB / 0.5865 GB, free: 1.488 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.344e-05/0.4025, allocations: 2.125 kB / 0.5865 GB, free: 1.488 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.4025, allocations: 2.719 kB / 0.5865 GB, free: 1.488 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002216/0.4027, allocations: 91.08 kB / 0.5866 GB, free: 1.461 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006996/0.4034, allocations: 0.7353 MB / 0.5873 GB, free: 0.793 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001328/0.4036, allocations: 62.53 kB / 0.5874 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.78e-05/0.4037, allocations: 34.42 kB / 0.5874 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.4037, allocations: 1.375 kB / 0.5874 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002441/0.404, allocations: 131.9 kB / 0.5876 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.404, allocations: 0 / 0.5876 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.00045/0.4044, allocations: 187.1 kB / 0.5877 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.972e-05/0.4045, allocations: 132.1 kB / 0.5879 GB, free: 416 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001769/0.4047, allocations: 194.2 kB / 0.588 GB, free: 280 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.579e-05/0.4047, allocations: 35.44 kB / 0.5881 GB, free: 240 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.957e-05/0.4048, allocations: 130 kB / 0.5882 GB, free: 120 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.214e-05/0.4048, allocations: 35.31 kB / 0.5882 GB, free: 92 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.734e-06/0.4048, allocations: 4.781 kB / 0.5882 GB, free: 88 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.4049, allocations: 328.5 kB / 0.5886 GB, free: 15.77 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001314/0.4051, allocations: 42.42 kB / 0.5886 GB, free: 15.76 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001805/0.4053, allocations: 151.8 kB / 0.5887 GB, free: 15.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001514/0.4054, allocations: 63.97 kB / 0.5888 GB, free: 15.58 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.4054, allocations: 0.8125 kB / 0.5888 GB, free: 15.58 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004431/0.4059, allocations: 225.6 kB / 0.589 GB, free: 15.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.4059, allocations: 6.062 kB / 0.589 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.4059, allocations: 8.781 kB / 0.589 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.406, allocations: 10.3 kB / 0.589 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/0.4061, allocations: 35.16 kB / 0.5891 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.4061, allocations: 10.52 kB / 0.5891 GB, free: 15.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001542/0.4063, allocations: 32.02 kB / 0.5891 GB, free: 15.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.831e-05/0.4063, allocations: 9.125 kB / 0.5891 GB, free: 15.45 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.0001202/0.4064, allocations: 143.3 kB / 0.5893 GB, free: 15.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.998e-05/0.4065, allocations: 17.56 kB / 0.5893 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.482e-05/0.4065, allocations: 20.36 kB / 0.5893 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.4065, allocations: 6.797 kB / 0.5893 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.4065, allocations: 5.078 kB / 0.5893 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.4065, allocations: 2.328 kB / 0.5893 GB, free: 15.28 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007602/0.4073, allocations: 0.5308 MB / 0.5898 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.4073, allocations: 0.9062 kB / 0.5898 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001124/0.4074, allocations: 18.02 kB / 0.5898 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/0.4075, allocations: 5.672 kB / 0.5898 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.4075, allocations: 3.406 kB / 0.5899 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.4075, allocations: 1.594 kB / 0.5899 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.4075, allocations: 1.938 kB / 0.5899 GB, free: 14.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005121/0.408, allocations: 374.8 kB / 0.5902 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.512e-05/0.4081, allocations: 95.95 kB / 0.5903 GB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.905e-05/0.4081, allocations: 6.719 kB / 0.5903 GB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.4083, allocations: 19.61 kB / 0.5903 GB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.38e-05/0.4083, allocations: 13.77 kB / 0.5903 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.049e-05/0.4084, allocations: 5.5 kB / 0.5903 GB, free: 14.45 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001312/0.4085, allocations: 143.3 kB / 0.5905 GB, free: 14.36 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.522e-06/0.4085, allocations: 0 / 0.5905 GB, free: 14.36 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.000361/0.4089, allocations: 31.36 kB / 0.5905 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 (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.0007844/0.4097, allocations: 0.9118 MB / 0.5914 GB, free: 13.54 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000342/0.41, allocations: 125.5 kB / 0.5915 GB, free: 13.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.41, allocations: 5.094 kB / 0.5915 GB, free: 13.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001427/0.4102, allocations: 52.91 kB / 0.5916 GB, free: 13.49 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000549/0.4107, allocations: 67.38 kB / 0.5916 GB, free: 13.47 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001955/0.4127, allocations: 1.114 MB / 0.5927 GB, free: 12.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.413, allocations: 0.7244 MB / 0.5934 GB, free: 12 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001032/0.4131, allocations: 20.12 kB / 0.5935 GB, free: 12 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.4133, allocations: 49.47 kB / 0.5935 GB, free: 11.96 MB / 446.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4133, allocations: 4 kB / 0.5935 GB, free: 11.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0149/0.4282, allocations: 3.535 MB / 0.597 GB, free: 11.34 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001529/0.4284, allocations: 179.8 kB / 0.5971 GB, free: 11.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.751/2.18, allocations: 0 / 0.5971 GB, free: 11.11 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: