Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001897/0.001897, allocations: 118.8 kB / 17.79 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00194/0.00194, allocations: 202 kB / 18.74 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.905/1.905, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2919/0.2919, allocations: 46.11 MB / 344.4 MB, free: 11.46 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002926/0.002926, allocations: 83.84 kB / 480.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.569/0.572, allocations: 62.43 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003448/0.5755, allocations: 1.646 MB / 0.5322 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001228/0.5767, allocations: 0.582 MB / 0.5328 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.722e-05/0.5768, allocations: 5 kB / 0.5328 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001283/0.577, allocations: 12.97 kB / 0.5328 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.277e-05/0.577, allocations: 13.05 kB / 0.5328 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004104/0.5775, allocations: 88.56 kB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002018/0.5777, allocations: 113.1 kB / 0.533 GB, free: 11.47 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.5778, allocations: 31.88 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.053e-05/0.5779, allocations: 49.61 kB / 0.5331 GB, free: 11.42 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.232e-05/0.578, allocations: 39.34 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.917e-05/0.578, allocations: 9.156 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.088e-05/0.5781, allocations: 11.56 kB / 0.5331 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.213e-05/0.5781, allocations: 18.52 kB / 0.5331 GB, free: 11.37 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.132e-05/0.5782, allocations: 37.14 kB / 0.5332 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001814/0.5784, allocations: 94.97 kB / 0.5333 GB, free: 11.27 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.5784, allocations: 1.906 kB / 0.5333 GB, free: 11.27 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5784, allocations: 0 / 0.5333 GB, free: 11.27 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.194e-05/0.5784, allocations: 0 / 0.5333 GB, free: 11.27 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.000777/0.5792, allocations: 419.3 kB / 0.5337 GB, free: 10.86 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.5792, allocations: 10.38 kB / 0.5337 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.782e-05/0.5793, allocations: 36.34 kB / 0.5337 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.039e-05/0.5793, allocations: 14.61 kB / 0.5337 GB, free: 10.8 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/0.5797, allocations: 210 kB / 0.5339 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.286e-05/0.5797, allocations: 10.94 kB / 0.5339 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.784e-05/0.5797, allocations: 5.75 kB / 0.5339 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003411/0.5801, allocations: 101.5 kB / 0.534 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.5801, allocations: 0 / 0.534 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.5801, allocations: 5.688 kB / 0.534 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.5801, allocations: 1.438 kB / 0.534 GB, free: 10.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001786/0.5803, allocations: 61.92 kB / 0.5341 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007437/0.5811, allocations: 378.8 kB / 0.5345 GB, free: 10.11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003573/0.5814, allocations: 104.1 kB / 0.5346 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.5816, allocations: 40.12 kB / 0.5346 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.5816, allocations: 5.312 kB / 0.5346 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003024/0.5819, allocations: 98.97 kB / 0.5347 GB, free: 9.941 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 2.464e-06/0.5819, allocations: 1.375 kB / 0.5347 GB, free: 9.941 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005929/0.5825, allocations: 150.2 kB / 0.5348 GB, free: 9.855 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.78e-05/0.5826, allocations: 52.78 kB / 0.5349 GB, free: 9.793 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001776/0.5828, allocations: 149.7 kB / 0.535 GB, free: 9.668 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.84e-05/0.5828, allocations: 27.08 kB / 0.5351 GB, free: 9.637 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/0.5829, allocations: 100.2 kB / 0.5352 GB, free: 9.539 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.405e-05/0.583, allocations: 22.59 kB / 0.5352 GB, free: 9.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.94e-05/0.5831, allocations: 29.97 kB / 0.5352 GB, free: 9.492 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002133/0.5833, allocations: 325.5 kB / 0.5355 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001374/0.5834, allocations: 36.59 kB / 0.5356 GB, free: 9.152 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.5836, allocations: 50.44 kB / 0.5356 GB, free: 9.121 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002465/0.5839, allocations: 76.12 kB / 0.5357 GB, free: 9.078 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.5839, allocations: 0 / 0.5357 GB, free: 9.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003519/0.5842, allocations: 121.5 kB / 0.5358 GB, free: 9.008 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.5843, allocations: 8.844 kB / 0.5358 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.5843, allocations: 5.672 kB / 0.5358 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.737e-05/0.5843, allocations: 0 / 0.5358 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001289/0.5844, allocations: 12.22 kB / 0.5358 GB, free: 9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.177e-05/0.5845, allocations: 5.688 kB / 0.5358 GB, free: 8.996 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.5846, allocations: 21.45 kB / 0.5358 GB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.5846, allocations: 10.44 kB / 0.5359 GB, free: 8.977 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001466/0.5848, allocations: 122.9 kB / 0.536 GB, free: 8.852 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.287e-05/0.5848, allocations: 16.88 kB / 0.536 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.301e-05/0.5849, allocations: 14.83 kB / 0.536 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.576e-06/0.5849, allocations: 0.6562 kB / 0.536 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.5849, allocations: 0 / 0.536 GB, free: 8.824 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.5849, allocations: 5.016 kB / 0.536 GB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006441/0.5856, allocations: 393.8 kB / 0.5364 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.5856, allocations: 1.25 kB / 0.5364 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.873e-05/0.5857, allocations: 15.86 kB / 0.5364 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.5857, allocations: 1.094 kB / 0.5364 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.5857, allocations: 1.188 kB / 0.5364 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.5857, allocations: 4 kB / 0.5364 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.5857, allocations: 1.172 kB / 0.5364 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005071/0.5862, allocations: 253.5 kB / 0.5366 GB, free: 8.242 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.151e-05/0.5863, allocations: 87.42 kB / 0.5367 GB, free: 8.141 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.258e-05/0.5863, allocations: 13.05 kB / 0.5367 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.5865, allocations: 15.36 kB / 0.5368 GB, free: 8.125 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.668e-05/0.5866, allocations: 13.92 kB / 0.5368 GB, free: 8.117 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.5866, allocations: 6.672 kB / 0.5368 GB, free: 8.113 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.229e-05/0.5867, allocations: 114.6 kB / 0.5369 GB, free: 8.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5867, allocations: 0 / 0.5369 GB, free: 8.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002335/0.5869, allocations: 17.72 kB / 0.5369 GB, free: 8.016 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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.0008853/0.5878, allocations: 0.7834 MB / 0.5377 GB, free: 7.293 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003098/0.5881, allocations: 85.34 kB / 0.5378 GB, free: 7.262 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.5881, allocations: 0 / 0.5378 GB, free: 7.262 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001453/0.5883, allocations: 46.38 kB / 0.5378 GB, free: 7.242 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003365/0.5886, allocations: 20.27 kB / 0.5378 GB, free: 7.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002841/0.5915, allocations: 1.686 MB / 0.5395 GB, free: 5.789 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003736/0.5919, allocations: 0.7068 MB / 0.5402 GB, free: 5.074 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.982e-05/0.5919, allocations: 5.188 kB / 0.5402 GB, free: 5.074 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.979e-05/0.592, allocations: 32.92 kB / 0.5402 GB, free: 5.047 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.592, allocations: 1.094 kB / 0.5402 GB, free: 5.047 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02874/0.6208, allocations: 2.622 MB / 0.5427 GB, free: 3.672 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.998/9.619, allocations: 14.94 kB / 0.5428 GB, free: 3.664 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1)