Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous.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.Continuous,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Continuous,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Continuous",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001574/0.001574, allocations: 117.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.001631/0.001631, allocations: 200.6 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 1.463/1.463, allocations: 227.4 MB / 247 MB, free: 10.46 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.2706/0.2706, allocations: 46.11 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.00261/0.00261, allocations: 76.2 kB / 480.9 MB, free: 4.543 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4116/0.4142, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.004891/0.4191, allocations: 3.337 MB / 0.5339 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003279/0.4224, allocations: 1.601 MB / 0.5354 GB, free: 9.461 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003945/0.4228, allocations: 21.59 kB / 0.5354 GB, free: 9.453 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005557/0.4234, allocations: 141.7 kB / 0.5356 GB, free: 9.336 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004556/0.4239, allocations: 186.6 kB / 0.5358 GB, free: 9.188 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001273/0.4252, allocations: 0.5362 MB / 0.5363 GB, free: 8.777 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001048/0.4262, allocations: 0.9144 MB / 0.5372 GB, free: 8.215 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003916/0.4266, allocations: 232.5 kB / 0.5374 GB, free: 8.074 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005181/0.4272, allocations: 358.7 kB / 0.5377 GB, free: 7.848 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005368/0.4277, allocations: 403.5 kB / 0.5381 GB, free: 7.566 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001083/0.4278, allocations: 61.97 kB / 0.5382 GB, free: 7.566 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001433/0.428, allocations: 67.66 kB / 0.5382 GB, free: 7.566 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002255/0.4282, allocations: 201.4 kB / 0.5384 GB, free: 7.414 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003205/0.4286, allocations: 347.7 kB / 0.5388 GB, free: 7.137 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009424/0.4295, allocations: 0.7868 MB / 0.5395 GB, free: 6.539 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.4295, allocations: 5.031 kB / 0.5395 GB, free: 6.535 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.4295, allocations: 0 / 0.5395 GB, free: 6.535 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.4295, allocations: 0 / 0.5395 GB, free: 6.535 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.002374/0.4319, allocations: 1.183 MB / 0.5407 GB, free: 5.613 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.424e-05/0.432, allocations: 10.3 kB / 0.5407 GB, free: 5.613 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001137/0.4321, allocations: 92.86 kB / 0.5408 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002866/0.4324, allocations: 106.8 kB / 0.5409 GB, free: 5.473 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009535/0.4333, allocations: 0.5919 MB / 0.5415 GB, free: 4.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.234e-05/0.4334, allocations: 37.59 kB / 0.5415 GB, free: 4.965 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.547e-05/0.4335, allocations: 51.44 kB / 0.5416 GB, free: 4.949 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.4347, allocations: 0.6244 MB / 0.5422 GB, free: 4.504 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.4347, allocations: 1.062 kB / 0.5422 GB, free: 4.504 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.244e-05/0.4348, allocations: 17.72 kB / 0.5422 GB, free: 4.492 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.594e-05/0.4348, allocations: 10.97 kB / 0.5422 GB, free: 4.492 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001111/0.4359, allocations: 465.9 kB / 0.5426 GB, free: 4.281 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003761/0.4397, allocations: 2.656 MB / 0.5452 GB, free: 2.074 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/0.4408, allocations: 0.55 MB / 0.5458 GB, free: 1.766 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005781/0.4414, allocations: 248.5 kB / 0.546 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.466e-05/0.4415, allocations: 4 kB / 0.546 GB, free: 1.633 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.015e-05/0.4415, allocations: 46.59 kB / 0.5461 GB, free: 1.578 MB / 398.1 MB Notification: Performance of pre-optimization done (n=43): time 2.054e-06/0.4415, allocations: 0 / 0.5461 GB, free: 1.578 MB / 398.1 MB Notification: Performance of matching and sorting (n=44): time 0.002596/0.4441, allocations: 1.162 MB / 0.5472 GB, free: 416 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.4443, allocations: 166.1 kB / 0.5474 GB, free: 212 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009236/0.4452, allocations: 0.6529 MB / 0.548 GB, free: 15.54 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.498e-05/0.4453, allocations: 33.7 kB / 0.548 GB, free: 15.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003256/0.4456, allocations: 376.4 kB / 0.5484 GB, free: 15.13 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001591/0.4458, allocations: 170.5 kB / 0.5485 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002084/0.446, allocations: 122.3 kB / 0.5487 GB, free: 14.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.4461, allocations: 337.9 kB / 0.549 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006387/0.4468, allocations: 271.3 kB / 0.5492 GB, free: 14.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007564/0.4476, allocations: 433.5 kB / 0.5497 GB, free: 13.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001332/0.4489, allocations: 0.6762 MB / 0.5503 GB, free: 13 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.4489, allocations: 0 / 0.5503 GB, free: 13 MB / 414.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001635/0.4505, allocations: 0.7981 MB / 0.5511 GB, free: 12.2 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.4506, allocations: 8 kB / 0.5511 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.22e-05/0.4506, allocations: 7.938 kB / 0.5511 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.4506, allocations: 8.531 kB / 0.5511 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006751/0.4513, allocations: 155.7 kB / 0.5513 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.626e-05/0.4513, allocations: 11.94 kB / 0.5513 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005096/0.4518, allocations: 79.67 kB / 0.5514 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.017e-05/0.4519, allocations: 24 kB / 0.5514 GB, free: 11.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007915/0.4527, allocations: 413.2 kB / 0.5518 GB, free: 11.5 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007179/0.4534, allocations: 417.2 kB / 0.5522 GB, free: 11.03 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001232/0.4547, allocations: 0.6532 MB / 0.5528 GB, free: 10.31 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.124e-06/0.4547, allocations: 4 kB / 0.5528 GB, free: 10.31 MB / 414.1 MB Notification: Performance of matching and sorting (n=77) (initialization_lambda0): time 0.001506/0.4562, allocations: 0.7742 MB / 0.5536 GB, free: 9.527 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.076e-05/0.4562, allocations: 4 kB / 0.5536 GB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.4562, allocations: 8.031 kB / 0.5536 GB, free: 9.516 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.614e-06/0.4563, allocations: 8 kB / 0.5536 GB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005905/0.4568, allocations: 147.8 kB / 0.5537 GB, free: 9.363 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.541e-05/0.4569, allocations: 19.86 kB / 0.5537 GB, free: 9.344 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004925/0.4574, allocations: 79.62 kB / 0.5538 GB, free: 9.266 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.792e-05/0.4574, allocations: 20 kB / 0.5538 GB, free: 9.246 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 4 (limPID.I.local_reset,pID.I.local_reset,limIntegrator.local_reset,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (77): * Single equations (assignments): 77 * 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.0002072/0.4576, allocations: 220.1 kB / 0.554 GB, free: 9.023 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001531/0.4578, allocations: 75.53 kB / 0.5541 GB, free: 8.949 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002003/0.458, allocations: 82.22 kB / 0.5542 GB, free: 8.867 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.458, allocations: 11.94 kB / 0.5542 GB, free: 8.855 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/0.458, allocations: 4 kB / 0.5542 GB, free: 8.852 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.4581, allocations: 7.922 kB / 0.5542 GB, free: 8.844 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001362/0.4594, allocations: 0.8571 MB / 0.5551 GB, free: 7.93 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.4594, allocations: 7.922 kB / 0.5551 GB, free: 7.922 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006121/0.4601, allocations: 99.88 kB / 0.5552 GB, free: 7.824 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.4601, allocations: 4 kB / 0.5552 GB, free: 7.82 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.815e-05/0.4601, allocations: 15.98 kB / 0.5552 GB, free: 7.805 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.167e-06/0.4601, allocations: 4 kB / 0.5552 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.4602, allocations: 4 kB / 0.5552 GB, free: 7.797 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002061/0.4622, allocations: 1.133 MB / 0.5563 GB, free: 6.641 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000236/0.4625, allocations: 204.4 kB / 0.5565 GB, free: 6.422 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.343e-05/0.4626, allocations: 19.98 kB / 0.5565 GB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005182/0.4631, allocations: 43.94 kB / 0.5566 GB, free: 6.359 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.4632, allocations: 43.89 kB / 0.5566 GB, free: 6.316 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.93e-05/0.4633, allocations: 8 kB / 0.5566 GB, free: 6.309 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006516/0.4639, allocations: 467 kB / 0.557 GB, free: 5.859 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4639, allocations: 0 / 0.557 GB, free: 5.859 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007315/0.4647, allocations: 192 kB / 0.5572 GB, free: 5.672 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (limPID.I.y,limPID.D.x,transferFunction.x_scaled[1],stateSpace.x[1],stateSpace.x[2],lowpassButterworth.x1[1],lowpassButterworth.x2[1],criticalDamping.x[1],criticalDamping.x[2],integrator.y,limIntegrator.y,derivative.x,firstOrder.y,secondOrder.y,secondOrder.yd,pI.x,pID.I.y,pID.D.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 44 * 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 Backend phase and start with SimCode phase: time 0.002438/0.4671, allocations: 1.695 MB / 0.5589 GB, free: 3.949 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002208/0.4693, allocations: 0.9551 MB / 0.5598 GB, free: 2.996 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.74e-06/0.4693, allocations: 4 kB / 0.5598 GB, free: 2.992 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006551/0.47, allocations: 284 kB / 0.5601 GB, free: 2.719 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001088/0.4711, allocations: 195 kB / 0.5603 GB, free: 2.535 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01066/0.4818, allocations: 6.654 MB / 0.5668 GB, free: 11.62 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006144/0.4824, allocations: 0.9458 MB / 0.5677 GB, free: 10.65 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0005353/0.483, allocations: 156.7 kB / 0.5678 GB, free: 10.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003845/0.4834, allocations: 255.4 kB / 0.5681 GB, free: 10.25 MB / 430.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4834, allocations: 0 / 0.5681 GB, free: 10.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04754/0.5309, allocations: 14.54 MB / 0.5823 GB, free: 11.81 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.624/10.16, allocations: 2.5 kB / 0.5823 GB, free: 11.81 MB / 446.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Continuous_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Continuous.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous.pipe 2>&1)