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.001389/0.001389, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001384/0.001385, allocations: 198 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.518/1.518, 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.2632/0.2632, 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.002324/0.002324, allocations: 83.86 kB / 480.9 MB, free: 4.527 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4613/0.4637, allocations: 62.44 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Continuous): time 0.005693/0.4694, allocations: 3.344 MB / 0.5339 GB, free: 10.73 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004083/0.4736, allocations: 1.593 MB / 0.5354 GB, free: 9.457 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000892/0.4745, allocations: 21.62 kB / 0.5354 GB, free: 9.449 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007269/0.4753, allocations: 148.7 kB / 0.5356 GB, free: 9.324 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006421/0.476, allocations: 187.5 kB / 0.5358 GB, free: 9.18 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001701/0.4777, allocations: 0.5397 MB / 0.5363 GB, free: 8.766 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00159/0.4793, allocations: 0.9099 MB / 0.5372 GB, free: 8.207 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000483/0.4798, allocations: 233.1 kB / 0.5374 GB, free: 8.066 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006939/0.4805, allocations: 367.4 kB / 0.5377 GB, free: 7.832 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006356/0.4811, allocations: 394.8 kB / 0.5381 GB, free: 7.559 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001286/0.4812, allocations: 63.06 kB / 0.5382 GB, free: 7.559 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001815/0.4814, allocations: 74.36 kB / 0.5383 GB, free: 7.551 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002604/0.4817, allocations: 189.6 kB / 0.5384 GB, free: 7.41 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003874/0.4821, allocations: 352.3 kB / 0.5388 GB, free: 7.129 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00124/0.4834, allocations: 0.7907 MB / 0.5395 GB, free: 6.527 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.4834, allocations: 0 / 0.5395 GB, free: 6.527 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.4834, allocations: 4 kB / 0.5395 GB, free: 6.523 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.115e-05/0.4834, allocations: 1.125 kB / 0.5395 GB, free: 6.523 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.002855/0.4863, allocations: 1.177 MB / 0.5407 GB, free: 5.605 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.955e-05/0.4863, allocations: 15.2 kB / 0.5407 GB, free: 5.602 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001266/0.4865, allocations: 85.67 kB / 0.5408 GB, free: 5.523 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003454/0.4868, allocations: 105.4 kB / 0.5409 GB, free: 5.469 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001145/0.488, allocations: 0.5895 MB / 0.5415 GB, free: 4.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.682e-05/0.4881, allocations: 45.05 kB / 0.5415 GB, free: 4.957 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.4882, allocations: 51.34 kB / 0.5416 GB, free: 4.941 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/0.4895, allocations: 0.6175 MB / 0.5422 GB, free: 4.5 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.4896, allocations: 1.312 kB / 0.5422 GB, free: 4.5 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.384e-05/0.4896, allocations: 20.38 kB / 0.5422 GB, free: 4.484 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.845e-05/0.4896, allocations: 11.91 kB / 0.5422 GB, free: 4.484 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.4909, allocations: 461.6 kB / 0.5426 GB, free: 4.277 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004475/0.4953, allocations: 2.663 MB / 0.5452 GB, free: 2.062 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001322/0.4967, allocations: 0.5469 MB / 0.5458 GB, free: 1.758 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000636/0.4974, allocations: 253.3 kB / 0.546 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.123e-05/0.4974, allocations: 4.875 kB / 0.546 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.69e-05/0.4975, allocations: 38.34 kB / 0.5461 GB, free: 1.582 MB / 398.1 MB Notification: Performance of pre-optimization done (n=43): time 6.662e-06/0.4975, allocations: 96 / 0.5461 GB, free: 1.582 MB / 398.1 MB Notification: Performance of matching and sorting (n=44): time 0.0029/0.5004, allocations: 1.17 MB / 0.5472 GB, free: 412 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.5005, allocations: 162.2 kB / 0.5474 GB, free: 212 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001057/0.5016, allocations: 0.649 MB / 0.548 GB, free: 15.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.169e-05/0.5017, allocations: 41.7 kB / 0.548 GB, free: 15.5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003542/0.502, allocations: 364.5 kB / 0.5484 GB, free: 15.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001979/0.5022, allocations: 182.4 kB / 0.5485 GB, free: 14.96 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002139/0.5024, allocations: 118.3 kB / 0.5487 GB, free: 14.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.5026, allocations: 337.9 kB / 0.549 GB, free: 14.5 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007011/0.5033, allocations: 271.3 kB / 0.5492 GB, free: 14.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008048/0.5042, allocations: 429.5 kB / 0.5497 GB, free: 13.74 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001428/0.5056, allocations: 0.6855 MB / 0.5503 GB, free: 13 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.5056, allocations: 4 kB / 0.5503 GB, free: 12.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.001891/0.5075, allocations: 0.7956 MB / 0.5511 GB, free: 12.19 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.5075, allocations: 4 kB / 0.5511 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/0.5076, allocations: 7.938 kB / 0.5511 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.664e-05/0.5076, allocations: 8 kB / 0.5511 GB, free: 12.17 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007079/0.5083, allocations: 151.7 kB / 0.5513 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.933e-05/0.5083, allocations: 11.94 kB / 0.5513 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006227/0.509, allocations: 87.73 kB / 0.5514 GB, free: 11.93 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.875e-05/0.509, allocations: 24 kB / 0.5514 GB, free: 11.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0008651/0.5099, allocations: 401.3 kB / 0.5518 GB, free: 11.51 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0007642/0.5107, allocations: 425.2 kB / 0.5522 GB, free: 11.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001323/0.512, allocations: 0.6523 MB / 0.5528 GB, free: 10.31 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.326e-06/0.512, allocations: 0 / 0.5528 GB, free: 10.31 MB / 414.1 MB Notification: Performance of matching and sorting (n=77) (initialization_lambda0): time 0.001707/0.5137, allocations: 0.7779 MB / 0.5536 GB, free: 9.527 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.5138, allocations: 8 kB / 0.5536 GB, free: 9.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.5138, allocations: 4 kB / 0.5536 GB, free: 9.516 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.5138, allocations: 8 kB / 0.5536 GB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006388/0.5144, allocations: 143.8 kB / 0.5537 GB, free: 9.367 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.592e-05/0.5145, allocations: 16.25 kB / 0.5537 GB, free: 9.352 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005882/0.5151, allocations: 83.61 kB / 0.5538 GB, free: 9.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.071e-05/0.5151, allocations: 24 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.0002701/0.5154, allocations: 212.1 kB / 0.554 GB, free: 9.031 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001731/0.5156, allocations: 75.53 kB / 0.5541 GB, free: 8.957 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000263/0.5159, allocations: 94.2 kB / 0.5542 GB, free: 8.863 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.5159, allocations: 11.94 kB / 0.5542 GB, free: 8.852 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.5159, allocations: 3.938 kB / 0.5542 GB, free: 8.848 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.5159, allocations: 4 kB / 0.5542 GB, free: 8.844 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001497/0.5174, allocations: 0.8493 MB / 0.5551 GB, free: 7.938 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.5174, allocations: 7.938 kB / 0.5551 GB, free: 7.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006376/0.5181, allocations: 103.9 kB / 0.5552 GB, free: 7.828 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.5181, allocations: 4 kB / 0.5552 GB, free: 7.824 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.133e-05/0.5181, allocations: 16 kB / 0.5552 GB, free: 7.809 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.808e-06/0.5182, allocations: 7.984 kB / 0.5552 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.5182, allocations: 0 / 0.5552 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002193/0.5204, allocations: 1.137 MB / 0.5563 GB, free: 6.641 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002741/0.5207, allocations: 204.4 kB / 0.5565 GB, free: 6.422 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.31e-05/0.5207, allocations: 12 kB / 0.5565 GB, free: 6.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005367/0.5213, allocations: 47.94 kB / 0.5566 GB, free: 6.363 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.5214, allocations: 43.89 kB / 0.5566 GB, free: 6.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.381e-05/0.5215, allocations: 11.98 kB / 0.5566 GB, free: 6.309 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007269/0.5222, allocations: 459 kB / 0.557 GB, free: 5.867 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.5e-07/0.5222, allocations: 0 / 0.557 GB, free: 5.867 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009104/0.5231, allocations: 196 kB / 0.5572 GB, free: 5.676 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.002664/0.5258, allocations: 1.703 MB / 0.5589 GB, free: 3.945 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002479/0.5283, allocations: 0.9552 MB / 0.5598 GB, free: 2.992 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.5283, allocations: 0 / 0.5598 GB, free: 2.992 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006797/0.529, allocations: 283.5 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.001236/0.5303, allocations: 192 kB / 0.5603 GB, free: 2.539 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0118/0.5421, 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.0006662/0.5428, allocations: 0.9458 MB / 0.5677 GB, free: 10.65 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0006115/0.5434, allocations: 152.7 kB / 0.5678 GB, free: 10.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004249/0.5439, allocations: 259.3 kB / 0.5681 GB, free: 10.25 MB / 430.1 MB Notification: Performance of SimCode: time 1.382e-06/0.5439, allocations: 0 / 0.5681 GB, free: 10.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04902/0.5929, allocations: 14.54 MB / 0.5823 GB, free: 11.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.939/10.53, allocations: 8.062 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_Blocks_Continuous.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Continuous.pipe 2>&1)