Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000797/0.000797, allocations: 88.77 kB / 16.31 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008633/0.0008634, allocations: 183.1 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.416/1.416, allocations: 223.3 MB / 241.2 MB, free: 14.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000253/0.0002532, allocations: 9.344 kB / 300.9 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1089, allocations: 50.42 MB / 351.3 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar): time 0.009107/0.118, allocations: 8.33 MB / 359.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005879/0.124, allocations: 2.441 MB / 362.1 MB, free: 8.879 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000909/0.1249, allocations: 67.81 kB / 362.2 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001028/0.1259, allocations: 421.4 kB / 362.6 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001959/0.1279, allocations: 0.7503 MB / 363.3 MB, free: 7.645 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001424/0.1293, allocations: 0.6306 MB / 364 MB, free: 7.016 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003677/0.133, allocations: 3.707 MB / 367.7 MB, free: 3.293 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2183/0.3513, allocations: 9.261 MB / 376.9 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003169/0.3545, allocations: 1.614 MB / 378.6 MB, free: 8.301 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002958/0.3575, allocations: 1.841 MB / 380.4 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005229/0.358, allocations: 274.9 kB / 380.7 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001385/0.3594, allocations: 482.2 kB / 381.1 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007295/0.3601, allocations: 0.7182 MB / 381.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00104/0.3612, allocations: 0.8801 MB / 382.7 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007689/0.3689, allocations: 7.493 MB / 390.2 MB, free: 5.621 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.3689, allocations: 3.984 kB / 390.2 MB, free: 5.617 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3689, allocations: 7.094 kB / 390.2 MB, free: 5.613 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002667/0.3692, allocations: 0 / 390.2 MB, free: 5.613 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1224 * Number of variables: 1224 Notification: Performance of Generate backend data structure: time 0.01345/0.3827, allocations: 4.386 MB / 394.6 MB, free: 3.316 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.3827, allocations: 9.531 kB / 394.6 MB, free: 3.316 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002755/0.3855, allocations: 0.66 MB / 395.3 MB, free: 3.137 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00769/0.3932, allocations: 1.291 MB / 396.6 MB, free: 2.645 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004912/0.3981, allocations: 2.474 MB / 399.1 MB, free: 1.832 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002863/0.3984, allocations: 357.7 kB / 399.4 MB, free: 1.668 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001166/0.3996, allocations: 458.5 kB / 399.9 MB, free: 1.516 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01216/0.4118, allocations: 6.078 MB / 405.9 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.563e-05/0.4119, allocations: 0 / 405.9 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004369/0.4124, allocations: 188 kB / 406.1 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001728/0.4125, allocations: 204.3 kB / 406.3 MB, free: 12.28 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01044/0.423, allocations: 5.249 MB / 411.6 MB, free: 7.016 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03319/0.4562, allocations: 21.06 MB / 432.6 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00588/0.4621, allocations: 5.61 MB / 438.2 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001109/0.4633, allocations: 0.6979 MB / 438.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001508/0.4635, allocations: 109.9 kB / 439 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.318e-05/0.4635, allocations: 47.56 kB / 439.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=100): time 3.286e-06/0.4635, allocations: 0 / 439.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=100): time 0.002339/0.4659, allocations: 1.533 MB / 440.6 MB, free: 8.902 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.022e-05/0.4659, allocations: 72.16 kB / 440.7 MB, free: 8.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002266/0.4682, allocations: 1.445 MB / 442.1 MB, free: 7.367 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.82e-05/0.4683, allocations: 41.7 kB / 442.2 MB, free: 7.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001172/0.4694, allocations: 1.957 MB / 444.1 MB, free: 5.348 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000309/0.4698, allocations: 370.3 kB / 444.5 MB, free: 4.988 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.415e-05/0.4699, allocations: 48 kB / 444.5 MB, free: 4.941 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002484/0.4701, allocations: 451.2 kB / 445 MB, free: 4.492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001385/0.4715, allocations: 0.8398 MB / 445.8 MB, free: 3.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00196/0.4735, allocations: 1.969 MB / 447.8 MB, free: 1.145 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001727/0.4752, allocations: 1.345 MB / 449.1 MB, free: 15.84 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.925e-05/0.4753, allocations: 12 kB / 449.1 MB, free: 15.83 MB / 366.1 MB Notification: Performance of matching and sorting (n=289) (initialization): time 0.003893/0.4792, allocations: 2.85 MB / 452 MB, free: 13.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.812e-05/0.4792, allocations: 26.44 kB / 452 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.825e-05/0.4793, allocations: 40 kB / 452.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.661e-05/0.4793, allocations: 63.47 kB / 452.1 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00153/0.4809, allocations: 0.5319 MB / 452.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.405e-05/0.481, allocations: 83.66 kB / 452.7 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/0.4823, allocations: 293.1 kB / 453 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001611/0.4825, allocations: 128 kB / 453.2 MB, free: 12.08 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 178 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (285): * Single equations (assignments): 281 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003279/0.4858, allocations: 1.664 MB / 454.8 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004125/0.4862, allocations: 130.3 kB / 454.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002511/0.4887, allocations: 1.42 MB / 456.4 MB, free: 8.832 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001389/0.4901, allocations: 1.006 MB / 457.4 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.4901, allocations: 0 / 457.4 MB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.4901, allocations: 3.984 kB / 457.4 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01638/0.5065, allocations: 12.23 MB / 469.6 MB, free: 10.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-05/0.5066, allocations: 22.73 kB / 469.6 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007153/0.5073, allocations: 211.6 kB / 469.8 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-05/0.5074, allocations: 28.75 kB / 469.9 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.912e-05/0.5074, allocations: 47.97 kB / 469.9 MB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.31e-05/0.5075, allocations: 43.86 kB / 470 MB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.232e-05/0.5075, allocations: 35.77 kB / 470 MB, free: 10.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002961/0.5105, allocations: 2.57 MB / 472.6 MB, free: 7.754 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000629/0.5111, allocations: 335.1 kB / 472.9 MB, free: 7.406 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001623/0.5113, allocations: 48.05 kB / 472.9 MB, free: 7.359 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006667/0.512, allocations: 63.94 kB / 473 MB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/0.5121, allocations: 139.5 kB / 473.1 MB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.153e-05/0.5122, allocations: 48 kB / 473.2 MB, free: 7.113 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00155/0.5138, allocations: 0.9799 MB / 474.2 MB, free: 6.129 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5138, allocations: 0 / 474.2 MB, free: 6.129 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002942/0.5167, allocations: 0.9476 MB / 475.1 MB, free: 5.176 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 87 * Number of states: 1 (voltageSource.plug_p.reference.gamma) * 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 (101): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003377/0.5201, allocations: 3.217 MB / 478.3 MB, free: 1.676 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003069/0.5232, allocations: 1.903 MB / 480.2 MB, free: 15.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.495e-05/0.5232, allocations: 4 kB / 480.2 MB, free: 15.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008798/0.5241, allocations: 0.6111 MB / 480.8 MB, free: 15.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002332/0.5265, allocations: 379.6 kB / 481.2 MB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0266/0.5531, allocations: 15.9 MB / 497.1 MB, free: 13.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003468/0.5566, allocations: 3.075 MB / 0.4885 GB, free: 10.71 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002046/0.5587, allocations: 0.8093 MB / 0.4893 GB, free: 9.898 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001671/0.5604, allocations: 1.276 MB / 0.4905 GB, free: 8.621 MB / 414.1 MB Notification: Performance of SimCode: time 7.11e-07/0.5604, allocations: 3.938 kB / 0.4905 GB, free: 8.617 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0693/0.6297, allocations: 40.62 MB / 0.5302 GB, free: 312 kB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002085/0.6299, allocations: 201.6 kB / 0.5304 GB, free: 68 kB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.501/3.131, allocations: 5.641 kB / 0.5304 GB, free: 68 kB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar_res.mat does not exist to compare? outputFormat=mat