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.05061/0.05062, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.06853/0.06853, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 3.768/3.768, 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.2743/0.2743, allocations: 46.13 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.002195/0.002196, allocations: 75.88 kB / 480.9 MB, free: 4.535 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4413/0.4436, allocations: 62.45 MB / 0.5306 GB, free: 13.37 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003401/0.447, allocations: 1.626 MB / 0.5322 GB, free: 12.1 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001003/0.448, allocations: 0.5136 MB / 0.5327 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.827e-05/0.4481, allocations: 3.938 kB / 0.5327 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.353e-05/0.4482, allocations: 14.77 kB / 0.5327 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.362e-05/0.4483, allocations: 15.86 kB / 0.5327 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001355/0.4484, allocations: 30.41 kB / 0.5327 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001333/0.4486, allocations: 77.45 kB / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.181e-05/0.4487, allocations: 32.45 kB / 0.5329 GB, free: 11.57 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.463e-05/0.4487, allocations: 29.88 kB / 0.5329 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.105e-05/0.4488, allocations: 35.28 kB / 0.5329 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.797e-05/0.4488, allocations: 5.906 kB / 0.5329 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.673e-05/0.4488, allocations: 10.72 kB / 0.5329 GB, free: 11.52 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.561e-05/0.4489, allocations: 10.31 kB / 0.5329 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.892e-05/0.4489, allocations: 39.83 kB / 0.533 GB, free: 11.48 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001502/0.4491, allocations: 73.78 kB / 0.533 GB, free: 11.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.4491, allocations: 3.938 kB / 0.5331 GB, free: 11.42 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.4491, allocations: 0 / 0.5331 GB, free: 11.42 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.4491, allocations: 0.7812 kB / 0.5331 GB, free: 11.42 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.0005886/0.4497, allocations: 396.5 kB / 0.5334 GB, free: 11.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.4498, allocations: 10.31 kB / 0.5334 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.686e-05/0.4498, allocations: 37.38 kB / 0.5335 GB, free: 10.97 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.518e-05/0.4498, allocations: 13.22 kB / 0.5335 GB, free: 10.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003021/0.4502, allocations: 207.3 kB / 0.5337 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.4502, allocations: 7.016 kB / 0.5337 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.251e-05/0.4502, allocations: 10.16 kB / 0.5337 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000155/0.4504, allocations: 75.83 kB / 0.5338 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.723e-06/0.4504, allocations: 0 / 0.5338 GB, free: 10.67 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.02e-05/0.4504, allocations: 5.125 kB / 0.5338 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.4504, allocations: 1.125 kB / 0.5338 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.633e-05/0.4505, allocations: 31.08 kB / 0.5338 GB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000601/0.4511, allocations: 355.4 kB / 0.5341 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001167/0.4512, allocations: 52.44 kB / 0.5342 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.503e-05/0.4513, allocations: 16.3 kB / 0.5342 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.218e-05/0.4513, allocations: 0 / 0.5342 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001414/0.4515, allocations: 67.06 kB / 0.5343 GB, free: 10.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.4515, allocations: 0 / 0.5343 GB, free: 10.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002248/0.4517, allocations: 98.98 kB / 0.5344 GB, free: 10.11 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/0.4518, allocations: 53.28 kB / 0.5344 GB, free: 10.05 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.4519, allocations: 140 kB / 0.5346 GB, free: 9.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.214e-05/0.4519, allocations: 30.89 kB / 0.5346 GB, free: 9.895 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.11e-05/0.452, allocations: 99.39 kB / 0.5347 GB, free: 9.797 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.166e-05/0.452, allocations: 14.86 kB / 0.5347 GB, free: 9.785 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.256e-05/0.4521, allocations: 30.23 kB / 0.5347 GB, free: 9.758 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.4523, allocations: 316.3 kB / 0.535 GB, free: 9.441 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.282e-05/0.4523, allocations: 17.08 kB / 0.535 GB, free: 9.434 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.224e-05/0.4524, allocations: 42.62 kB / 0.5351 GB, free: 9.395 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.845e-05/0.4525, allocations: 48.2 kB / 0.5351 GB, free: 9.355 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.4525, allocations: 4.125 kB / 0.5351 GB, free: 9.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001455/0.4526, allocations: 95.52 kB / 0.5352 GB, free: 9.285 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.4527, allocations: 9.438 kB / 0.5352 GB, free: 9.281 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.4527, allocations: 5.312 kB / 0.5352 GB, free: 9.277 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.4527, allocations: 5.438 kB / 0.5352 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.002e-05/0.4528, allocations: 5.5 kB / 0.5352 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.4528, allocations: 5.75 kB / 0.5353 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.029e-05/0.4528, allocations: 5.5 kB / 0.5353 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.4528, allocations: 6.75 kB / 0.5353 GB, free: 9.266 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.0001113/0.453, allocations: 121.9 kB / 0.5354 GB, free: 9.141 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.683e-05/0.453, allocations: 8.078 kB / 0.5354 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.572e-05/0.453, allocations: 19.39 kB / 0.5354 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.453, allocations: 5.375 kB / 0.5354 GB, free: 9.113 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.4531, allocations: 3.984 kB / 0.5354 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.4531, allocations: 0 / 0.5354 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003879/0.4535, allocations: 353 kB / 0.5358 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.4535, allocations: 0 / 0.5358 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.507e-05/0.4535, allocations: 4.125 kB / 0.5358 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.4535, allocations: 0 / 0.5358 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.4535, allocations: 1.375 kB / 0.5358 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.4535, allocations: 1.375 kB / 0.5358 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.4536, allocations: 0 / 0.5358 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002385/0.4538, allocations: 197.9 kB / 0.5359 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.936e-05/0.4539, allocations: 90.36 kB / 0.536 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.701e-05/0.4539, allocations: 1.375 kB / 0.536 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.367e-05/0.454, allocations: 4.125 kB / 0.536 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.334e-05/0.454, allocations: 10.73 kB / 0.5361 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.603e-06/0.4541, allocations: 6.688 kB / 0.5361 GB, free: 8.461 MB / 398.1 MB Notification: Performance of sorting global known variables: time 9.089e-05/0.4542, allocations: 104.9 kB / 0.5362 GB, free: 8.375 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4542, allocations: 4.062 kB / 0.5362 GB, free: 8.371 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002314/0.4544, allocations: 20.36 kB / 0.5362 GB, free: 8.363 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.0005408/0.4549, allocations: 0.7126 MB / 0.5369 GB, free: 7.676 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001311/0.4551, allocations: 51.41 kB / 0.5369 GB, free: 7.652 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4551, allocations: 5.5 kB / 0.5369 GB, free: 7.648 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.396e-05/0.4552, allocations: 25.69 kB / 0.537 GB, free: 7.637 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.4555, allocations: 18.64 kB / 0.537 GB, free: 7.629 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001713/0.4572, allocations: 1.52 MB / 0.5385 GB, free: 6.23 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003447/0.4575, allocations: 0.6974 MB / 0.5391 GB, free: 5.523 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.06e-05/0.4576, allocations: 9.016 kB / 0.5391 GB, free: 5.52 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.53e-05/0.4577, allocations: 23.88 kB / 0.5392 GB, free: 5.5 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.4577, allocations: 1.125 kB / 0.5392 GB, free: 5.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0372/0.4949, allocations: 2.226 MB / 0.5413 GB, free: 4.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.993/8.488, allocations: 10.62 kB / 0.5414 GB, free: 4.316 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1)