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.001264/0.001264, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 227.4 MB / 247 MB, free: 10.39 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.2339/0.2339, allocations: 46.12 MB / 344.3 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.002332/0.002332, allocations: 79.86 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3248, allocations: 62.42 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.003895/0.3287, allocations: 1.922 MB / 0.5325 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002354/0.3311, allocations: 1.18 MB / 0.5336 GB, free: 10.96 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.3313, allocations: 10.69 kB / 0.5336 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006776/0.332, allocations: 179.1 kB / 0.5338 GB, free: 10.85 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004255/0.3324, allocations: 165.6 kB / 0.534 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004296/0.3329, allocations: 165.6 kB / 0.5341 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004082/0.3333, allocations: 286.5 kB / 0.5344 GB, free: 10.45 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.3334, allocations: 37.48 kB / 0.5344 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000155/0.3336, allocations: 109.9 kB / 0.5345 GB, free: 10.37 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001798/0.3338, allocations: 119.8 kB / 0.5346 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 4.377e-05/0.3338, allocations: 17.03 kB / 0.5347 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001872/0.334, allocations: 62.39 kB / 0.5347 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.3342, allocations: 69.61 kB / 0.5348 GB, free: 10.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001426/0.3343, allocations: 106.2 kB / 0.5349 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004467/0.3348, allocations: 285.3 kB / 0.5352 GB, free: 9.965 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.3348, allocations: 7.938 kB / 0.5352 GB, free: 9.957 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3348, allocations: 0 / 0.5352 GB, free: 9.957 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.3348, allocations: 1.375 kB / 0.5352 GB, free: 9.957 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.001171/0.336, allocations: 0.6718 MB / 0.5358 GB, free: 9.301 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.336, allocations: 9.5 kB / 0.5358 GB, free: 9.301 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.806e-05/0.3361, allocations: 44.25 kB / 0.5359 GB, free: 9.254 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.282e-05/0.3362, allocations: 30.17 kB / 0.5359 GB, free: 9.242 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004003/0.3366, allocations: 284.6 kB / 0.5362 GB, free: 8.965 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/0.3367, allocations: 95.48 kB / 0.5363 GB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.148e-05/0.3367, allocations: 23.8 kB / 0.5363 GB, free: 8.852 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003472/0.3371, allocations: 155.8 kB / 0.5364 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.3371, allocations: 0 / 0.5364 GB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.122e-05/0.3371, allocations: 12.31 kB / 0.5364 GB, free: 8.73 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.3371, allocations: 2.344 kB / 0.5364 GB, free: 8.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002301/0.3374, allocations: 91.81 kB / 0.5365 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008742/0.3383, allocations: 0.6127 MB / 0.5371 GB, free: 8.098 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003502/0.3386, allocations: 171.2 kB / 0.5373 GB, free: 7.969 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001896/0.3388, allocations: 95.03 kB / 0.5374 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.067e-05/0.3389, allocations: 1.938 kB / 0.5374 GB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004925/0.3394, allocations: 445.9 kB / 0.5378 GB, free: 7.461 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.763e-06/0.3394, allocations: 0 / 0.5378 GB, free: 7.461 MB / 398.1 MB Notification: Performance of matching and sorting (n=23): time 0.0008656/0.3402, allocations: 440.4 kB / 0.5382 GB, free: 7.195 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001391/0.3404, allocations: 216.3 kB / 0.5384 GB, free: 6.941 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003852/0.3408, allocations: 334.8 kB / 0.5388 GB, free: 6.727 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.302e-05/0.3408, allocations: 33.77 kB / 0.5388 GB, free: 6.691 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001066/0.3409, allocations: 135.9 kB / 0.5389 GB, free: 6.566 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.759e-05/0.341, allocations: 52.56 kB / 0.539 GB, free: 6.523 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.081e-05/0.3411, allocations: 51.06 kB / 0.539 GB, free: 6.488 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.3413, allocations: 338.7 kB / 0.5393 GB, free: 6.156 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.3414, allocations: 61.09 kB / 0.5394 GB, free: 6.125 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002155/0.3416, allocations: 137.4 kB / 0.5395 GB, free: 5.996 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004477/0.3421, allocations: 354.3 kB / 0.5399 GB, free: 5.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3421, allocations: 4 kB / 0.5399 GB, free: 5.652 MB / 398.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005657/0.3427, allocations: 360 kB / 0.5402 GB, free: 5.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.569e-05/0.3428, allocations: 91.56 kB / 0.5403 GB, free: 5.312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.3428, allocations: 7.375 kB / 0.5403 GB, free: 5.309 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.3428, allocations: 2.688 kB / 0.5403 GB, free: 5.309 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.3429, allocations: 24.08 kB / 0.5403 GB, free: 5.301 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.3429, allocations: 11.25 kB / 0.5403 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001369/0.3431, allocations: 24.34 kB / 0.5404 GB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.401e-05/0.3431, allocations: 14.03 kB / 0.5404 GB, free: 5.277 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.0002473/0.3434, allocations: 270.1 kB / 0.5406 GB, free: 5.023 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.651e-05/0.3434, allocations: 34.17 kB / 0.5407 GB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.945e-05/0.3435, allocations: 30.27 kB / 0.5407 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.3435, allocations: 2.5 kB / 0.5407 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3435, allocations: 5.562 kB / 0.5407 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.3435, allocations: 0 / 0.5407 GB, free: 4.977 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003024/0.3438, allocations: 293.1 kB / 0.541 GB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-06/0.3439, allocations: 3.938 kB / 0.541 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.805e-05/0.3439, allocations: 4.625 kB / 0.541 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3439, allocations: 1.406 kB / 0.541 GB, free: 4.688 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.6e-05/0.3439, allocations: 12.19 kB / 0.541 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.3439, allocations: 5.297 kB / 0.541 GB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3439, allocations: 5.719 kB / 0.541 GB, free: 4.676 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006826/0.3446, allocations: 448 kB / 0.5414 GB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.896e-05/0.3447, allocations: 105.3 kB / 0.5415 GB, free: 4.258 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.694e-05/0.3448, allocations: 12.31 kB / 0.5416 GB, free: 4.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.3449, allocations: 15.92 kB / 0.5416 GB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.172e-05/0.345, allocations: 20.14 kB / 0.5416 GB, free: 4.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.564e-05/0.345, allocations: 13.28 kB / 0.5416 GB, free: 4.234 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002658/0.3453, allocations: 242.7 kB / 0.5418 GB, free: 4.082 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3453, allocations: 0 / 0.5418 GB, free: 4.082 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003275/0.3456, allocations: 72.47 kB / 0.5419 GB, free: 4.066 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.002437/0.3481, allocations: 1.293 MB / 0.5432 GB, free: 3.109 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006325/0.3487, allocations: 396 kB / 0.5435 GB, free: 2.809 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.3487, allocations: 0 / 0.5435 GB, free: 2.809 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004076/0.3492, allocations: 346.9 kB / 0.5439 GB, free: 2.523 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003694/0.3495, allocations: 64.39 kB / 0.5439 GB, free: 2.492 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00383/0.3534, allocations: 2.864 MB / 0.5467 GB, free: 332 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000444/0.3538, allocations: 0.7556 MB / 0.5475 GB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001169/0.354, allocations: 21.55 kB / 0.5475 GB, free: 15.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.3541, allocations: 71.41 kB / 0.5476 GB, free: 15.45 MB / 414.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3541, allocations: 8 kB / 0.5476 GB, free: 15.44 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02975/0.3839, allocations: 6.244 MB / 0.5537 GB, free: 9.285 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.427/8.811, allocations: 11.98 kB / 0.5537 GB, free: 9.273 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_OnDelay.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.OnDelay.pipe 2>&1)