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.001275/0.001274, allocations: 96.36 kB / 16.3 MB, free: 5.656 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.001451/0.001451, allocations: 183.2 kB / 17.2 MB, free: 5.59 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.51/1.51, allocations: 223.2 MB / 241.1 MB, free: 416 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005072/0.0005072, allocations: 12 kB / 300.8 MB, free: 6.387 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.1379, allocations: 50.42 MB / 351.2 MB, free: 3.957 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar): time 0.008714/0.1467, allocations: 7.809 MB / 359 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005446/0.1522, allocations: 2.493 MB / 361.5 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001369/0.1536, allocations: 67.75 kB / 361.6 MB, free: 9.547 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001363/0.155, allocations: 441.6 kB / 362 MB, free: 9.113 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002548/0.1575, allocations: 0.8014 MB / 362.8 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001859/0.1594, allocations: 0.6305 MB / 363.5 MB, free: 7.684 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004349/0.1638, allocations: 2.713 MB / 366.2 MB, free: 4.965 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2409/0.4048, allocations: 9.155 MB / 375.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003251/0.4081, allocations: 1.518 MB / 376.9 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004003/0.4121, allocations: 1.71 MB / 378.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001056/0.4132, allocations: 274.6 kB / 378.8 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002575/0.4158, allocations: 448.9 kB / 379.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00105/0.4169, allocations: 0.7178 MB / 380 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002438/0.4193, allocations: 0.8728 MB / 380.9 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01093/0.4303, allocations: 7.49 MB / 388.4 MB, free: 5.977 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.4303, allocations: 0 / 388.4 MB, free: 5.977 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.4303, allocations: 4.047 kB / 388.4 MB, free: 5.977 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0004442/0.4308, allocations: 0 / 388.4 MB, free: 5.977 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.01621/0.447, allocations: 4.392 MB / 392.7 MB, free: 3.676 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.535e-05/0.4471, allocations: 8.25 kB / 392.8 MB, free: 3.676 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003428/0.4505, allocations: 0.6535 MB / 393.4 MB, free: 3.496 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009748/0.4603, allocations: 1.295 MB / 394.7 MB, free: 3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007091/0.4674, allocations: 2.472 MB / 397.2 MB, free: 2.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003489/0.4678, allocations: 349.3 kB / 397.5 MB, free: 2.258 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002188/0.47, allocations: 460.2 kB / 398 MB, free: 2.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02182/0.4918, allocations: 6.037 MB / 404 MB, free: 14.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002222/0.4921, allocations: 9.094 kB / 404 MB, free: 14.76 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003011/0.4951, allocations: 190.7 kB / 404.2 MB, free: 14.58 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003185/0.4955, allocations: 197.5 kB / 404.4 MB, free: 14.38 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01932/0.5148, allocations: 5.257 MB / 409.6 MB, free: 9.113 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05564/0.5705, allocations: 21.06 MB / 430.7 MB, free: 3.691 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007278/0.5779, allocations: 5.602 MB / 436.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003057/0.5782, allocations: 108.5 kB / 436.4 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.943e-05/0.5783, allocations: 47.56 kB / 436.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=100): time 4.228e-06/0.5783, allocations: 0 / 436.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=100): time 0.003468/0.5818, allocations: 1.885 MB / 438.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.905e-05/0.5819, allocations: 60.41 kB / 438.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003182/0.5851, allocations: 1.446 MB / 439.9 MB, free: 9.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001861/0.5853, allocations: 41.7 kB / 439.9 MB, free: 9.613 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002291/0.5876, allocations: 1.958 MB / 441.9 MB, free: 7.641 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005867/0.5882, allocations: 375.9 kB / 442.2 MB, free: 7.277 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/0.5883, allocations: 45.86 kB / 442.3 MB, free: 7.234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0004064/0.5887, allocations: 459.2 kB / 442.7 MB, free: 6.777 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001731/0.5905, allocations: 0.8476 MB / 443.6 MB, free: 5.926 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002595/0.5931, allocations: 1.962 MB / 445.5 MB, free: 3.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002262/0.5954, allocations: 1.352 MB / 446.9 MB, free: 2.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.787e-05/0.5954, allocations: 12 kB / 446.9 MB, free: 2.059 MB / 350.1 MB Notification: Performance of matching and sorting (n=289) (initialization): time 0.005951/0.6014, allocations: 2.871 MB / 449.8 MB, free: 15.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.925e-05/0.6015, allocations: 23.94 kB / 449.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-05/0.6016, allocations: 40 kB / 449.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.239e-05/0.6017, allocations: 60 kB / 449.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0019/0.6036, allocations: 0.5342 MB / 450.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.43e-05/0.6037, allocations: 75.72 kB / 450.5 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001909/0.6056, allocations: 301.2 kB / 450.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001968/0.6058, allocations: 120 kB / 450.9 MB, free: 14.04 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 176 * 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.005719/0.6115, allocations: 1.669 MB / 452.6 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003872/0.6119, allocations: 130.3 kB / 452.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002632/0.6146, allocations: 1.451 MB / 454.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001506/0.6161, allocations: 1.028 MB / 455.2 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.6161, allocations: 0 / 455.2 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.6162, allocations: 7.969 kB / 455.2 MB, free: 9.711 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02105/0.6372, allocations: 12.39 MB / 467.6 MB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.363e-05/0.6373, allocations: 20 kB / 467.6 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007607/0.638, allocations: 211.6 kB / 467.8 MB, free: 12.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.134e-05/0.6381, allocations: 28 kB / 467.8 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.428e-05/0.6382, allocations: 51.98 kB / 467.9 MB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.651e-05/0.6382, allocations: 35.86 kB / 467.9 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.263e-05/0.6382, allocations: 31.83 kB / 467.9 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004135/0.6424, allocations: 3.768 MB / 471.7 MB, free: 7.922 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008787/0.6433, allocations: 331.1 kB / 472 MB, free: 7.578 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002149/0.6435, allocations: 47.97 kB / 472.1 MB, free: 7.531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007811/0.6443, allocations: 59.95 kB / 472.1 MB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.6445, allocations: 139.5 kB / 472.3 MB, free: 7.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.699e-05/0.6446, allocations: 51.98 kB / 472.3 MB, free: 7.285 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001604/0.6462, allocations: 0.9838 MB / 473.3 MB, free: 6.297 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6462, allocations: 0 / 473.3 MB, free: 6.297 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003595/0.6498, allocations: 0.9398 MB / 474.2 MB, free: 5.352 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.007372/0.6572, allocations: 10.19 MB / 484.4 MB, free: 10.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003559/0.6608, allocations: 1.92 MB / 486.4 MB, free: 8.652 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.823e-05/0.6609, allocations: 4 kB / 486.4 MB, free: 8.648 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.6619, allocations: 0.6243 MB / 487 MB, free: 8.031 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002222/0.6641, allocations: 361.1 kB / 487.3 MB, free: 7.688 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04844/0.7126, allocations: 42.29 MB / 0.5172 GB, free: 12.08 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003783/0.7164, allocations: 3.144 MB / 0.5203 GB, free: 8.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002171/0.7186, allocations: 0.8171 MB / 0.5211 GB, free: 8.086 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002062/0.7207, allocations: 1.273 MB / 0.5223 GB, free: 6.812 MB / 446.1 MB Notification: Performance of SimCode: time 1.563e-06/0.7207, allocations: 0 / 0.5223 GB, free: 6.812 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2789/0.9997, allocations: 40.62 MB / 0.562 GB, free: 136.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000359/1, allocations: 204 kB / 0.5622 GB, free: 136.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.589/3.59, allocations: 0 / 0.5622 GB, free: 136.3 MB / 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