Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/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 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(PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4WindingsNoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4WindingsNoLoad",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.001143/0.001143, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00118/0.00118, allocations: 193.2 kB / 16.13 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.158/1.158, allocations: 205.1 MB / 222 MB, free: 4.738 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05507/0.05507, allocations: 14.15 MB / 283.5 MB, free: 7.297 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 63.91 kB / 344.5 MB, free: 19.73 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06618/0.06743, allocations: 50.13 MB / 394.6 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad): time 0.005044/0.07251, allocations: 5.623 MB / 400.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003449/0.07598, allocations: 2.956 MB / 403.2 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002958/0.07629, allocations: 11.94 kB / 403.2 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005619/0.07687, allocations: 230.9 kB / 403.4 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001969/0.07885, allocations: 1.147 MB / 404.6 MB, free: 7.555 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007491/0.0796, allocations: 446.8 kB / 405 MB, free: 7.121 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001153/0.08076, allocations: 1.386 MB / 406.4 MB, free: 5.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001334/0.08091, allocations: 81.75 kB / 406.5 MB, free: 5.652 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003603/0.08128, allocations: 414.2 kB / 406.9 MB, free: 5.246 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000405/0.08169, allocations: 473.9 kB / 407.4 MB, free: 4.781 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.142e-05/0.08177, allocations: 40 kB / 407.4 MB, free: 4.742 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004355/0.08221, allocations: 267.8 kB / 407.7 MB, free: 4.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.815e-05/0.08232, allocations: 131.4 kB / 407.8 MB, free: 4.352 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003046/0.08263, allocations: 397.9 kB / 408.2 MB, free: 3.961 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008431/0.08348, allocations: 1.067 MB / 409.2 MB, free: 2.891 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.08349, allocations: 0 / 409.2 MB, free: 2.891 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.0835, allocations: 7.938 kB / 409.2 MB, free: 2.883 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.08351, allocations: 0 / 409.2 MB, free: 2.883 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: 110 * Number of variables: 110 Notification: Performance of Generate backend data structure: time 0.002953/0.08647, allocations: 1.337 MB / 410.6 MB, free: 1.492 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.08651, allocations: 8.031 kB / 410.6 MB, free: 1.484 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.151e-05/0.0866, allocations: 86.7 kB / 410.7 MB, free: 1.391 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003203/0.08692, allocations: 99.98 kB / 410.8 MB, free: 1.293 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006934/0.08762, allocations: 0.5323 MB / 411.3 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.839e-05/0.08766, allocations: 41.38 kB / 411.3 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.573e-05/0.08775, allocations: 71.84 kB / 411.4 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007026/0.08846, allocations: 494 kB / 411.9 MB, free: 120 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.073e-05/0.08848, allocations: 0 / 411.9 MB, free: 120 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.834e-05/0.08853, allocations: 19.98 kB / 411.9 MB, free: 100 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.08854, allocations: 8 kB / 411.9 MB, free: 92 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007587/0.0893, allocations: 487.7 kB / 412.4 MB, free: 15.61 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00367/0.09298, allocations: 2.848 MB / 415.2 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.09413, allocations: 0.7812 MB / 416 MB, free: 11.62 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000337/0.09448, allocations: 230.5 kB / 416.3 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.583e-05/0.09453, allocations: 8.547 kB / 416.3 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.09456, allocations: 43.06 kB / 416.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=62): time 1.603e-06/0.09457, allocations: 0 / 416.3 MB, free: 11.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=62): time 0.003457/0.09803, allocations: 1.28 MB / 417.6 MB, free: 10.03 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.914e-05/0.09807, allocations: 55.97 kB / 417.6 MB, free: 9.957 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004503/0.09852, allocations: 0.4987 MB / 418.1 MB, free: 9.445 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/0.09858, allocations: 41.7 kB / 418.2 MB, free: 9.398 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001573/0.09874, allocations: 261.1 kB / 418.4 MB, free: 9.137 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.09889, allocations: 220.8 kB / 418.7 MB, free: 8.918 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002159/0.09911, allocations: 182.5 kB / 418.8 MB, free: 8.734 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.09924, allocations: 370.8 kB / 419.2 MB, free: 8.363 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004866/0.09973, allocations: 317.9 kB / 419.5 MB, free: 8.055 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005355/0.1003, allocations: 393.4 kB / 419.9 MB, free: 7.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000895/0.1012, allocations: 0.6357 MB / 420.5 MB, free: 7.016 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1012, allocations: 4 kB / 420.5 MB, free: 7.012 MB / 318.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002842/0.104, allocations: 1.275 MB / 421.8 MB, free: 5.707 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.1041, allocations: 4 kB / 421.8 MB, free: 5.703 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.1041, allocations: 0 / 421.8 MB, free: 5.703 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002472/0.1065, allocations: 0.6062 MB / 422.4 MB, free: 5.078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008382/0.1074, allocations: 223.7 kB / 422.6 MB, free: 4.859 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1286/0.236, allocations: 10.6 MB / 433.2 MB, free: 32.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006449/0.2366, allocations: 81.64 kB / 433.3 MB, free: 32.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.06e-05/0.2367, allocations: 33.81 kB / 433.3 MB, free: 32.25 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (100): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {2, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(3,12), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002254/0.2369, allocations: 208.1 kB / 433.5 MB, free: 32.13 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.429e-05/0.237, allocations: 62.91 kB / 433.6 MB, free: 32.13 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001457/0.2385, allocations: 0.7672 MB / 434.4 MB, free: 31.9 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.2385, allocations: 10.69 kB / 434.4 MB, free: 31.89 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.2385, allocations: 7.188 kB / 434.4 MB, free: 31.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.2385, allocations: 4.641 kB / 434.4 MB, free: 31.89 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002051/0.2406, allocations: 1.552 MB / 435.9 MB, free: 31.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.2406, allocations: 0 / 435.9 MB, free: 31.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005921/0.2412, allocations: 140.9 kB / 436.1 MB, free: 31.02 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008043/0.242, allocations: 245 kB / 436.3 MB, free: 30.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.232e-05/0.2421, allocations: 11.94 kB / 436.3 MB, free: 30.97 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00263/0.2447, allocations: 2.4 MB / 438.7 MB, free: 29.19 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2447, allocations: 0 / 438.7 MB, free: 29.19 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001687/0.2464, allocations: 1.102 MB / 439.8 MB, free: 28.66 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/0.2466, allocations: 190.3 kB / 440 MB, free: 28.5 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.005e-05/0.2466, allocations: 11.69 kB / 440 MB, free: 28.49 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003454/0.247, allocations: 24.94 kB / 440.1 MB, free: 28.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.138e-05/0.2471, allocations: 43.25 kB / 440.1 MB, free: 28.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.704e-05/0.2471, allocations: 18.23 kB / 440.1 MB, free: 28.47 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003132/0.2474, allocations: 333.2 kB / 440.4 MB, free: 28.32 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2475, allocations: 0 / 440.4 MB, free: 28.32 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006849/0.2481, allocations: 258 kB / 440.7 MB, free: 28.29 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (machine.theta,machine.omegaPu,machine.lambdaDPu,machine.lambdafPu,machine.lambdaQ1Pu,machine.lambdaQ2Pu) * 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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,12,61.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00194/0.2501, allocations: 1.708 MB / 442.4 MB, free: 27.2 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002287/0.2524, allocations: 1.676 MB / 444.1 MB, free: 26.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.2524, allocations: 3.984 kB / 444.1 MB, free: 26.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008635/0.2533, allocations: 0.5192 MB / 444.6 MB, free: 25.82 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005818/0.2539, allocations: 97.16 kB / 444.7 MB, free: 25.79 MB / 318.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01061/0.2645, allocations: 7.051 MB / 451.7 MB, free: 21.89 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.2648, allocations: 0.8998 MB / 452.6 MB, free: 21.18 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002827/0.2651, allocations: 70.62 kB / 452.7 MB, free: 21.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000242/0.2653, allocations: 215.2 kB / 452.9 MB, free: 21 MB / 318.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2653, allocations: 0 / 452.9 MB, free: 21 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02236/0.2877, allocations: 16.02 MB / 468.9 MB, free: 7.668 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001287/0.2879, allocations: 240.4 kB / 469.2 MB, free: 7.414 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.888/2.176, allocations: 4 kB / 469.2 MB, free: 7.41 MB / 318.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4WindingsNoLoad_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4WindingsNoLoad.fmu > PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsNoLoad_res.mat does not exist to compare? outputFormat=mat