Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.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.OnDelay,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.OnDelay,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_OnDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001254/0.001254, allocations: 118.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00128/0.00128, allocations: 205.2 kB / 18.74 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.479/1.479, allocations: 227.4 MB / 247 MB, free: 10.41 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.2472/0.2472, allocations: 46.12 MB / 344.3 MB, free: 11.48 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.002138/0.002138, allocations: 75.88 kB / 480.9 MB, free: 4.547 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3736/0.3757, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003541/0.3793, allocations: 1.907 MB / 0.5325 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002114/0.3814, allocations: 1.188 MB / 0.5336 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.3815, allocations: 5.5 kB / 0.5336 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006454/0.3822, allocations: 186 kB / 0.5338 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004161/0.3827, allocations: 171.7 kB / 0.534 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004407/0.3831, allocations: 160.9 kB / 0.5341 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003467/0.3835, allocations: 290.9 kB / 0.5344 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001013/0.3836, allocations: 28.8 kB / 0.5344 GB, free: 10.44 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.3837, allocations: 117 kB / 0.5345 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001762/0.3839, allocations: 112.7 kB / 0.5346 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.168e-05/0.384, allocations: 17.47 kB / 0.5347 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001686/0.3841, allocations: 74.2 kB / 0.5347 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.349e-05/0.3843, allocations: 58.14 kB / 0.5348 GB, free: 10.24 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001482/0.3844, allocations: 109.4 kB / 0.5349 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004343/0.3848, allocations: 284.9 kB / 0.5352 GB, free: 9.969 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3849, allocations: 9.031 kB / 0.5352 GB, free: 9.961 MB / 398.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.3849, allocations: 0 / 0.5352 GB, free: 9.961 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.3849, allocations: 0 / 0.5352 GB, free: 9.961 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.001029/0.3859, allocations: 0.6723 MB / 0.5358 GB, free: 9.305 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.386, allocations: 10.03 kB / 0.5358 GB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.223e-05/0.386, allocations: 45.17 kB / 0.5359 GB, free: 9.258 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.034e-05/0.3861, allocations: 28.08 kB / 0.5359 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004031/0.3865, allocations: 290.1 kB / 0.5362 GB, free: 8.965 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001124/0.3866, allocations: 95.58 kB / 0.5363 GB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.086e-05/0.3867, allocations: 16.06 kB / 0.5363 GB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003323/0.387, allocations: 162.9 kB / 0.5364 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.387, allocations: 0 / 0.5364 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.831e-05/0.3871, allocations: 3.906 kB / 0.5364 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.202e-06/0.3871, allocations: 6.688 kB / 0.5364 GB, free: 8.734 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002311/0.3873, allocations: 96.36 kB / 0.5365 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009243/0.3882, allocations: 0.5998 MB / 0.5371 GB, free: 8.109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003776/0.3886, allocations: 184.3 kB / 0.5373 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001914/0.3888, allocations: 86.73 kB / 0.5374 GB, free: 7.914 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.104e-05/0.3889, allocations: 6.203 kB / 0.5374 GB, free: 7.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005331/0.3894, allocations: 437.8 kB / 0.5378 GB, free: 7.473 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.483e-06/0.3894, allocations: 0 / 0.5378 GB, free: 7.473 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.0009042/0.3903, allocations: 448.6 kB / 0.5382 GB, free: 7.199 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001658/0.3905, allocations: 227.9 kB / 0.5385 GB, free: 6.934 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004146/0.3909, allocations: 326.7 kB / 0.5388 GB, free: 6.727 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.755e-05/0.391, allocations: 37.81 kB / 0.5388 GB, free: 6.688 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001105/0.3911, allocations: 127.4 kB / 0.5389 GB, free: 6.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.22e-05/0.3912, allocations: 57.98 kB / 0.539 GB, free: 6.523 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.959e-05/0.3913, allocations: 50.58 kB / 0.539 GB, free: 6.488 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.3915, allocations: 333.9 kB / 0.5393 GB, free: 6.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.3916, allocations: 62.31 kB / 0.5394 GB, free: 6.129 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002522/0.3919, allocations: 140.7 kB / 0.5395 GB, free: 5.996 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004785/0.3924, allocations: 358.2 kB / 0.5399 GB, free: 5.652 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.3924, allocations: 4.719 kB / 0.5399 GB, free: 5.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006246/0.393, allocations: 356 kB / 0.5402 GB, free: 5.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.266e-05/0.3931, allocations: 102 kB / 0.5403 GB, free: 5.305 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.3931, allocations: 2.312 kB / 0.5403 GB, free: 5.305 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.3932, allocations: 3.406 kB / 0.5403 GB, free: 5.305 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.3933, allocations: 18.81 kB / 0.5403 GB, free: 5.301 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.3933, allocations: 12.02 kB / 0.5404 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001431/0.3935, allocations: 24.95 kB / 0.5404 GB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.3935, allocations: 9.438 kB / 0.5404 GB, free: 5.281 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 29 ($PRE.onDelay1.u,$PRE.onDelay1.t_next,$PRE.onDelay3.u,$PRE.onDelay3.t_next,$PRE.onDelay2.u,$PRE.onDelay2.t_next,$PRE.booleanTable.combiTimeTable.nextTimeEvent,$whenCondition5,booleanTable.combiTimeTable.nextTimeEventScaled,$PRE.booleanTable.combiTimeTable.nextTimeEventScaled,booleanTable.combiTimeTable.nextTimeEvent,onDelay1.t_next,onDelay1.delaySignal,onDelay1.y,onDelay1.u,$whenCondition7,$whenCondition6,onDelay2.t_next,onDelay2.delaySignal,onDelay2.y,onDelay2.u,$whenCondition4,$whenCondition3,onDelay3.t_next,onDelay3.delaySignal,onDelay3.y,onDelay3.u,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 3 * 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.0002819/0.3938, allocations: 273.6 kB / 0.5406 GB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.102e-05/0.3938, allocations: 33.77 kB / 0.5407 GB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.17e-05/0.3939, allocations: 26.73 kB / 0.5407 GB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-06/0.3939, allocations: 2.156 kB / 0.5407 GB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3939, allocations: 5.906 kB / 0.5407 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.3939, allocations: 5.078 kB / 0.5407 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003363/0.3943, allocations: 287.9 kB / 0.541 GB, free: 4.695 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.3943, allocations: 5.094 kB / 0.541 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.11e-05/0.3943, allocations: 8.734 kB / 0.541 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.3943, allocations: 0.9375 kB / 0.541 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.697e-05/0.3944, allocations: 11.44 kB / 0.541 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.3944, allocations: 1.156 kB / 0.541 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.3944, allocations: 1.062 kB / 0.541 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007126/0.3951, allocations: 449.5 kB / 0.5415 GB, free: 4.379 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.259e-05/0.3952, allocations: 100.8 kB / 0.5415 GB, free: 4.27 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.966e-05/0.3953, allocations: 13.12 kB / 0.5416 GB, free: 4.266 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.3954, allocations: 15.58 kB / 0.5416 GB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.115e-05/0.3955, allocations: 28.59 kB / 0.5416 GB, free: 4.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.743e-05/0.3955, allocations: 13 kB / 0.5416 GB, free: 4.238 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002874/0.3958, allocations: 242 kB / 0.5418 GB, free: 4.086 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3958, allocations: 1.219 kB / 0.5418 GB, free: 4.086 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003539/0.3962, allocations: 67.89 kB / 0.5419 GB, free: 4.074 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition5,$whenCondition6,$whenCondition7,onDelay1.u,onDelay1.y,onDelay1.delaySignal,onDelay1.t_next,booleanTable.combiTimeTable.nextTimeEvent,booleanTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,$whenCondition4,onDelay2.u,onDelay2.y,onDelay2.delaySignal,onDelay2.t_next,$whenCondition1,$whenCondition2,onDelay3.u,onDelay3.y,onDelay3.delaySignal,onDelay3.t_next) * Number of discrete states: 14 (onDelay3.t_next,onDelay3.delaySignal,$whenCondition2,$whenCondition1,onDelay2.t_next,onDelay2.delaySignal,$whenCondition4,$whenCondition3,booleanTable.combiTimeTable.nextTimeEventScaled,onDelay1.t_next,onDelay1.delaySignal,$whenCondition7,$whenCondition6,booleanTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 2 * 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.0026/0.3988, allocations: 1.291 MB / 0.5432 GB, free: 3.113 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006052/0.3994, allocations: 395.7 kB / 0.5435 GB, free: 2.812 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3994, allocations: 448 / 0.5435 GB, free: 2.812 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004091/0.3998, allocations: 345.6 kB / 0.5439 GB, free: 2.527 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003839/0.4002, allocations: 63.12 kB / 0.5439 GB, free: 2.504 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004041/0.4043, allocations: 2.869 MB / 0.5467 GB, free: 352 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004392/0.4047, allocations: 0.7556 MB / 0.5475 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.4048, allocations: 29.83 kB / 0.5475 GB, free: 15.53 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.405, allocations: 67.41 kB / 0.5476 GB, free: 15.46 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.405, allocations: 4 kB / 0.5476 GB, free: 15.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02789/0.4329, allocations: 6.239 MB / 0.5537 GB, free: 9.305 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.515/8.948, allocations: 13.47 kB / 0.5537 GB, free: 9.297 MB / 414.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_OnDelay_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe 2>&1)