Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00191/0.00191, allocations: 122.8 kB / 17.79 MB, free: 5.258 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: 201.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.577/1.577, allocations: 227.4 MB / 247 MB, free: 10.45 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.2769/0.2769, allocations: 46.12 MB / 344.4 MB, free: 11.45 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.002479/0.002479, allocations: 79.86 kB / 480.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3828/0.3853, allocations: 62.45 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003209/0.3885, allocations: 1.627 MB / 0.5322 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009672/0.3895, allocations: 0.5076 MB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.377e-05/0.3896, allocations: 6.688 kB / 0.5327 GB, free: 11.71 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001273/0.3897, allocations: 11.86 kB / 0.5327 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.097e-05/0.3898, allocations: 5.312 kB / 0.5327 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001841/0.39, allocations: 42.55 kB / 0.5327 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001581/0.3902, allocations: 78.48 kB / 0.5328 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001297/0.3903, allocations: 36.17 kB / 0.5329 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.812e-05/0.3904, allocations: 26.23 kB / 0.5329 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.591e-05/0.3904, allocations: 33.81 kB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.2e-05/0.3905, allocations: 7.062 kB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.765e-05/0.3905, allocations: 6.688 kB / 0.5329 GB, free: 11.54 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.24e-05/0.3905, allocations: 22.25 kB / 0.5329 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.063e-05/0.3906, allocations: 32.09 kB / 0.533 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001523/0.3907, allocations: 72.78 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.3908, allocations: 1.312 kB / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.417e-06/0.3908, allocations: 0 / 0.533 GB, free: 11.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.3908, allocations: 3.938 kB / 0.5331 GB, free: 11.44 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000615/0.3914, allocations: 397.4 kB / 0.5334 GB, free: 11.04 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.3914, allocations: 9.938 kB / 0.5334 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.465e-05/0.3915, allocations: 40.05 kB / 0.5335 GB, free: 10.99 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.221e-05/0.3915, allocations: 14.7 kB / 0.5335 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002685/0.3918, allocations: 198.3 kB / 0.5337 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.3918, allocations: 7.719 kB / 0.5337 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.54e-05/0.3919, allocations: 5.938 kB / 0.5337 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001851/0.392, allocations: 74.83 kB / 0.5338 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.3921, allocations: 1.219 kB / 0.5338 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.488e-05/0.3921, allocations: 0 / 0.5338 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.3921, allocations: 2.281 kB / 0.5338 GB, free: 10.7 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001269/0.3922, allocations: 35.14 kB / 0.5338 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007483/0.393, allocations: 359.3 kB / 0.5341 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001435/0.3932, allocations: 49.03 kB / 0.5342 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.83e-05/0.3932, allocations: 18.58 kB / 0.5342 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.045e-05/0.3932, allocations: 1.312 kB / 0.5342 GB, free: 10.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001367/0.3934, allocations: 69.5 kB / 0.5343 GB, free: 10.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.3934, allocations: 1.75 kB / 0.5343 GB, free: 10.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002236/0.3936, allocations: 87.47 kB / 0.5344 GB, free: 10.14 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.3937, allocations: 51.41 kB / 0.5344 GB, free: 10.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.3938, allocations: 142 kB / 0.5345 GB, free: 9.957 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.176e-05/0.3938, allocations: 27.33 kB / 0.5346 GB, free: 9.926 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.574e-05/0.3939, allocations: 104.7 kB / 0.5347 GB, free: 9.824 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.566e-05/0.3939, allocations: 21.39 kB / 0.5347 GB, free: 9.805 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.673e-05/0.394, allocations: 26.52 kB / 0.5347 GB, free: 9.781 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.3942, allocations: 316.3 kB / 0.535 GB, free: 9.465 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.561e-05/0.3942, allocations: 21.11 kB / 0.535 GB, free: 9.453 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.761e-05/0.3943, allocations: 38.66 kB / 0.5351 GB, free: 9.418 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.465e-05/0.3944, allocations: 56.33 kB / 0.5351 GB, free: 9.371 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3944, allocations: 0 / 0.5351 GB, free: 9.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000142/0.3945, allocations: 91.53 kB / 0.5352 GB, free: 9.309 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.3945, allocations: 9.438 kB / 0.5352 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.3945, allocations: 5.312 kB / 0.5352 GB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.3946, allocations: 0 / 0.5352 GB, free: 9.301 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.445e-05/0.3946, allocations: 10.86 kB / 0.5352 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.3946, allocations: 1.375 kB / 0.5352 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.407e-05/0.3947, allocations: 9.5 kB / 0.5353 GB, free: 9.293 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.3947, allocations: 5.438 kB / 0.5353 GB, free: 9.289 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,fallingEdge.not_u,$PRE.fallingEdge.not_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.0001053/0.3948, allocations: 125.5 kB / 0.5354 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.856e-05/0.3949, allocations: 12.06 kB / 0.5354 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.757e-05/0.3949, allocations: 15.41 kB / 0.5354 GB, free: 9.141 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.3949, allocations: 0 / 0.5354 GB, free: 9.141 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.3949, allocations: 1.375 kB / 0.5354 GB, free: 9.141 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.3949, allocations: 0 / 0.5354 GB, free: 9.141 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004091/0.3953, allocations: 349.1 kB / 0.5357 GB, free: 8.785 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.3954, allocations: 4 kB / 0.5357 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.311e-05/0.3954, allocations: 8.062 kB / 0.5357 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.3954, allocations: 0 / 0.5357 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.219e-05/0.3955, allocations: 1.375 kB / 0.5358 GB, free: 8.777 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.36e-06/0.3955, allocations: 3.984 kB / 0.5358 GB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3955, allocations: 1.375 kB / 0.5358 GB, free: 8.773 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000294/0.3958, allocations: 193 kB / 0.5359 GB, free: 8.605 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.742e-05/0.3959, allocations: 91.73 kB / 0.536 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.831e-05/0.3959, allocations: 5.438 kB / 0.536 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.3961, allocations: 6.75 kB / 0.536 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.868e-05/0.3961, allocations: 8.109 kB / 0.536 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.3961, allocations: 2.75 kB / 0.536 GB, free: 8.488 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001029/0.3962, allocations: 110.4 kB / 0.5362 GB, free: 8.395 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3963, allocations: 0 / 0.5362 GB, free: 8.395 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002829/0.3965, allocations: 12.38 kB / 0.5362 GB, free: 8.395 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,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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.000521/0.3971, allocations: 0.7243 MB / 0.5369 GB, free: 7.695 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001327/0.3972, allocations: 43.42 kB / 0.5369 GB, free: 7.68 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3972, allocations: 0 / 0.5369 GB, free: 7.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.483e-05/0.3973, allocations: 23.3 kB / 0.5369 GB, free: 7.672 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.3976, allocations: 22.69 kB / 0.537 GB, free: 7.656 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001694/0.3993, allocations: 1.533 MB / 0.5385 GB, free: 6.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004164/0.3997, allocations: 0.6932 MB / 0.5391 GB, free: 5.547 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.516e-05/0.3998, allocations: 8.984 kB / 0.5391 GB, free: 5.543 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.882e-05/0.3999, allocations: 29.11 kB / 0.5392 GB, free: 5.52 MB / 398.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3999, allocations: 0 / 0.5392 GB, free: 5.52 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02628/0.4262, allocations: 2.238 MB / 0.5414 GB, free: 4.332 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.066/9.493, allocations: 11.03 kB / 0.5414 GB, free: 4.324 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator_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_ResetHoldIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1)