Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002317/0.002317, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.181/2.181, allocations: 205.4 MB / 222.5 MB, free: 9.098 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00116/0.001161, allocations: 90.88 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004286/0.0004286, allocations: 12 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.395/0.3955, allocations: 47.58 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar): time 0.01164/0.4072, allocations: 8.094 MB / 382.7 MB, free: 39.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007147/0.4144, allocations: 2.633 MB / 385.4 MB, free: 37 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001883/0.4163, allocations: 60.91 kB / 385.4 MB, free: 36.99 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001886/0.4182, allocations: 459.4 kB / 385.9 MB, free: 36.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004524/0.4228, allocations: 0.8783 MB / 386.7 MB, free: 35.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002883/0.4257, allocations: 0.6638 MB / 387.4 MB, free: 35.44 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.005898/0.4316, allocations: 2.845 MB / 390.3 MB, free: 33.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01936/0.451, allocations: 9.204 MB / 399.5 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003105/0.4541, allocations: 1.585 MB / 401 MB, free: 22.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003662/0.4578, allocations: 1.817 MB / 402.9 MB, free: 20.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007627/0.4586, allocations: 280 kB / 403.1 MB, free: 20.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002041/0.4607, allocations: 459.7 kB / 403.6 MB, free: 19.77 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008171/0.4615, allocations: 0.7786 MB / 404.4 MB, free: 18.99 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00117/0.4627, allocations: 0.9019 MB / 405.3 MB, free: 18.08 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009034/0.4718, allocations: 7.621 MB / 412.9 MB, free: 10.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.4718, allocations: 0 / 412.9 MB, free: 10.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4718, allocations: 0 / 412.9 MB, free: 10.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002308/0.4721, allocations: 0 / 412.9 MB, free: 10.44 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1303 * Number of variables: 1303 Notification: Performance of Generate backend data structure: time 0.01639/0.4885, allocations: 4.59 MB / 417.5 MB, free: 5.781 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.95e-05/0.4885, allocations: 8.031 kB / 417.5 MB, free: 5.773 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002109/0.4906, allocations: 0.6986 MB / 418.2 MB, free: 5.066 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02006/0.5107, allocations: 2.406 MB / 420.6 MB, free: 2.652 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006203/0.517, allocations: 2.345 MB / 422.9 MB, free: 264 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003657/0.5174, allocations: 369.9 kB / 423.3 MB, free: 15.89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001711/0.5191, allocations: 472 kB / 423.8 MB, free: 15.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02143/0.5406, allocations: 6.588 MB / 430.3 MB, free: 8.809 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001666/0.5408, allocations: 0 / 430.3 MB, free: 8.809 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008826/0.5417, allocations: 192 kB / 430.5 MB, free: 8.621 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003484/0.542, allocations: 234.1 kB / 430.8 MB, free: 8.391 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02002/0.5621, allocations: 6.094 MB / 436.9 MB, free: 2.285 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06228/0.6244, allocations: 22.7 MB / 459.6 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01745/0.6419, allocations: 10.81 MB / 470.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008756/0.6507, allocations: 3.581 MB / 473.9 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.651e-05/0.6508, allocations: 38.55 kB / 474 MB, free: 10.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 2.956e-06/0.6508, allocations: 0 / 474 MB, free: 10.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.001181/0.652, allocations: 0.672 MB / 474.7 MB, free: 9.602 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.151e-05/0.6521, allocations: 51.41 kB / 474.7 MB, free: 9.539 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004782/0.6568, allocations: 2.145 MB / 476.9 MB, free: 7.387 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.475e-05/0.6569, allocations: 33.64 kB / 476.9 MB, free: 7.348 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00225/0.6592, allocations: 2.396 MB / 479.3 MB, free: 4.918 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001516/0.6594, allocations: 91.3 kB / 479.4 MB, free: 4.828 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002086/0.6596, allocations: 52 kB / 479.4 MB, free: 4.777 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002894/0.6599, allocations: 415.8 kB / 479.8 MB, free: 4.363 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002243/0.6622, allocations: 0.8597 MB / 480.7 MB, free: 3.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003441/0.6656, allocations: 2.261 MB / 482.9 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003428/0.6691, allocations: 1.427 MB / 484.4 MB, free: 15.11 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.462e-05/0.6692, allocations: 16 kB / 484.4 MB, free: 15.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.00831/0.6775, allocations: 3.067 MB / 487.5 MB, free: 12.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.587e-05/0.6776, allocations: 24 kB / 487.5 MB, free: 12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.705e-05/0.6777, allocations: 52 kB / 487.5 MB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001169/0.6778, allocations: 72 kB / 487.6 MB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003506/0.6813, allocations: 0.5771 MB / 488.2 MB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001253/0.6815, allocations: 96.23 kB / 488.3 MB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003323/0.6848, allocations: 412.1 kB / 488.7 MB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003858/0.6853, allocations: 148 kB / 488.8 MB, free: 10.65 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 227 * 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 (312): * Single equations (assignments): 308 * 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.004029/0.6893, allocations: 1.73 MB / 490.6 MB, free: 8.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003448/0.6897, allocations: 134.2 kB / 490.7 MB, free: 8.777 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000845/0.6905, allocations: 343.1 kB / 491 MB, free: 8.434 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003812/0.6909, allocations: 181.6 kB / 491.2 MB, free: 8.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.6909, allocations: 0 / 491.2 MB, free: 8.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.6909, allocations: 0 / 491.2 MB, free: 8.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007564/0.6985, allocations: 3.189 MB / 494.4 MB, free: 5.008 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.6986, allocations: 0 / 494.4 MB, free: 5.008 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/0.6987, allocations: 11.98 kB / 494.4 MB, free: 4.996 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.6987, allocations: 8.031 kB / 494.4 MB, free: 4.988 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.907e-05/0.6988, allocations: 0 / 494.4 MB, free: 4.988 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.6988, allocations: 0 / 494.4 MB, free: 4.988 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.471e-06/0.6988, allocations: 8 kB / 494.4 MB, free: 4.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001077/0.6999, allocations: 0.5365 MB / 494.9 MB, free: 4.418 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000648/0.7005, allocations: 259.2 kB / 495.2 MB, free: 4.145 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002244/0.7008, allocations: 4.062 kB / 495.2 MB, free: 4.141 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008427/0.7016, allocations: 31.95 kB / 495.2 MB, free: 4.109 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.135e-05/0.7017, allocations: 11.94 kB / 495.2 MB, free: 4.098 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/0.7017, allocations: 4 kB / 495.3 MB, free: 4.094 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003266/0.705, allocations: 1.396 MB / 496.6 MB, free: 2.703 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.705, allocations: 0 / 496.6 MB, free: 2.703 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003914/0.7089, allocations: 0.9907 MB / 497.6 MB, free: 1.707 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (10): * Single equations (assignments): 6 * 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.001591/0.7106, allocations: 1.192 MB / 498.8 MB, free: 492 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00396/0.7145, allocations: 1.576 MB / 0.4887 GB, free: 14.91 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.7146, allocations: 0 / 0.4887 GB, free: 14.91 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002084/0.7148, allocations: 83.91 kB / 0.4888 GB, free: 14.82 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002492/0.7173, allocations: 318.8 kB / 0.4891 GB, free: 14.52 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3077/1.025, allocations: 49.42 MB / 0.5373 GB, free: 95.11 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00405/1.029, allocations: 3.12 MB / 0.5404 GB, free: 93.24 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002325/1.032, allocations: 1.34 MB / 0.5417 GB, free: 92 MB / 394.7 MB Notification: Performance of SimCode: time 1.353e-06/1.032, allocations: 0 / 0.5417 GB, free: 92 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.169/4.201, allocations: 60.22 MB / 0.6005 GB, free: 35.38 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat does not exist to compare? outputFormat=mat