Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings.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.SynchronousMachine4Windings,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4Windings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.SynchronousMachine4Windings,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4Windings",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.0008787/0.0008787, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005082/0.005083, allocations: 169.1 kB / 16.26 MB, free: 6.652 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.174/1.174, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05665/0.05665, allocations: 14.16 MB / 284.9 MB, free: 7.035 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.0004381/0.0004381, allocations: 16 kB / 346.9 MB, free: 19.43 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07039/0.07084, allocations: 51.11 MB / 398 MB, free: 296 kB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.SynchronousMachine4Windings): time 0.004484/0.07536, allocations: 5.191 MB / 403.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003698/0.07908, allocations: 2.909 MB / 406.1 MB, free: 8.141 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002229/0.07932, allocations: 11.94 kB / 406.1 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004902/0.07982, allocations: 227 kB / 406.3 MB, free: 7.906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002015/0.08184, allocations: 1.12 MB / 407.4 MB, free: 6.785 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007527/0.0826, allocations: 439 kB / 407.9 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001361/0.08397, allocations: 1.394 MB / 409.3 MB, free: 4.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.08412, allocations: 81.73 kB / 409.3 MB, free: 4.883 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003846/0.08452, allocations: 410.2 kB / 409.7 MB, free: 4.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004631/0.08499, allocations: 462 kB / 410.2 MB, free: 4.027 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.521e-05/0.08506, allocations: 39.94 kB / 410.2 MB, free: 3.988 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004655/0.08553, allocations: 263.8 kB / 410.5 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.08565, allocations: 147.3 kB / 410.6 MB, free: 3.586 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003225/0.08598, allocations: 411.7 kB / 411 MB, free: 3.176 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009085/0.08689, allocations: 1.04 MB / 412.1 MB, free: 2.133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.0869, allocations: 0 / 412.1 MB, free: 2.133 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.08691, allocations: 0 / 412.1 MB, free: 2.133 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.064e-06/0.08692, allocations: 0 / 412.1 MB, free: 2.133 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.002875/0.0898, allocations: 1.224 MB / 413.3 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.08984, allocations: 8.031 kB / 413.3 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.288e-05/0.08993, allocations: 86.7 kB / 413.4 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003172/0.09026, allocations: 99.98 kB / 413.5 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000722/0.09099, allocations: 0.5363 MB / 414 MB, free: 88 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.938e-05/0.09103, allocations: 37.38 kB / 414.1 MB, free: 52 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001107/0.09114, allocations: 67.92 kB / 414.1 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007403/0.09189, allocations: 490.1 kB / 414.6 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.09191, allocations: 0 / 414.6 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.973e-05/0.09196, allocations: 20 kB / 414.6 MB, free: 15.46 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.09197, allocations: 8 kB / 414.6 MB, free: 15.46 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007895/0.09277, allocations: 0.4919 MB / 415.1 MB, free: 14.97 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.003892/0.09667, allocations: 2.86 MB / 418 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001194/0.09788, allocations: 0.7761 MB / 418.8 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003609/0.09825, allocations: 238.5 kB / 419 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.147e-05/0.0983, allocations: 13.16 kB / 419 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.09833, allocations: 43.12 kB / 419 MB, free: 10.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=62): time 1.773e-06/0.09834, allocations: 3.938 kB / 419 MB, free: 10.67 MB / 318.1 MB Notification: Performance of matching and sorting (n=62): time 0.003584/0.1019, allocations: 1.296 MB / 420.3 MB, free: 9.348 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.282e-05/0.102, allocations: 59.97 kB / 420.4 MB, free: 9.273 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004996/0.1025, allocations: 0.4948 MB / 420.9 MB, free: 8.766 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.151e-05/0.1025, allocations: 41.7 kB / 420.9 MB, free: 8.719 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.1027, allocations: 261.1 kB / 421.2 MB, free: 8.457 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/0.1029, allocations: 220.8 kB / 421.4 MB, free: 8.238 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001072/0.103, allocations: 97.66 kB / 421.5 MB, free: 8.137 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1031, allocations: 374.8 kB / 421.9 MB, free: 7.762 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005043/0.1037, allocations: 317.9 kB / 422.2 MB, free: 7.453 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005586/0.1042, allocations: 397.4 kB / 422.6 MB, free: 7.055 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009582/0.1052, allocations: 0.6436 MB / 423.2 MB, free: 6.402 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.1052, allocations: 0 / 423.2 MB, free: 6.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002808/0.108, allocations: 1.279 MB / 424.5 MB, free: 5.098 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.108, allocations: 12.06 kB / 424.5 MB, free: 5.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.1081, allocations: 0 / 424.5 MB, free: 5.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002442/0.1105, allocations: 0.6299 MB / 425.1 MB, free: 4.434 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008338/0.1113, allocations: 215.7 kB / 425.3 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1413/0.2526, allocations: 10.61 MB / 436 MB, free: 22.08 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006418/0.2533, allocations: 85.38 kB / 436 MB, free: 22.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.315e-05/0.2534, allocations: 30.38 kB / 436.1 MB, free: 22.08 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.0002535/0.2536, allocations: 207.8 kB / 436.3 MB, free: 21.96 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.543e-05/0.2537, allocations: 63.58 kB / 436.3 MB, free: 21.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001531/0.2552, allocations: 0.7833 MB / 437.1 MB, free: 21.89 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.2553, allocations: 6.156 kB / 437.1 MB, free: 21.89 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.678e-06/0.2553, allocations: 7.219 kB / 437.1 MB, free: 21.89 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.2553, allocations: 3.75 kB / 437.1 MB, free: 21.89 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 postOpt removeSimpleEquations (simulation): time 0.002119/0.2574, allocations: 1.568 MB / 438.7 MB, free: 21.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.2574, allocations: 4.703 kB / 438.7 MB, free: 21.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005723/0.258, allocations: 133.3 kB / 438.8 MB, free: 21.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008316/0.2588, allocations: 278.4 kB / 439.1 MB, free: 21.42 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.022e-05/0.2589, allocations: 12.55 kB / 439.1 MB, free: 21.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002658/0.2615, allocations: 2.396 MB / 441.5 MB, free: 20.12 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2616, allocations: 0 / 441.5 MB, free: 20.12 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001704/0.2633, allocations: 1.125 MB / 442.6 MB, free: 19.93 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000164/0.2634, allocations: 190.6 kB / 442.8 MB, free: 19.8 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.596e-05/0.2635, allocations: 11.5 kB / 442.8 MB, free: 19.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003543/0.2639, allocations: 32.09 kB / 442.9 MB, free: 19.79 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.73e-05/0.264, allocations: 45.64 kB / 442.9 MB, free: 19.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.573e-05/0.264, allocations: 14.72 kB / 442.9 MB, free: 19.79 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003274/0.2643, allocations: 331.5 kB / 443.2 MB, free: 19.7 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2644, allocations: 3.438 kB / 443.3 MB, free: 19.7 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007504/0.2651, allocations: 261.1 kB / 443.5 MB, free: 19.7 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.001958/0.2671, allocations: 1.717 MB / 445.2 MB, free: 18.79 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002293/0.2694, allocations: 1.682 MB / 446.9 MB, free: 17.7 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.2694, allocations: 4 kB / 446.9 MB, free: 17.69 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008538/0.2703, allocations: 0.5162 MB / 447.4 MB, free: 17.44 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005472/0.2708, allocations: 93.38 kB / 447.5 MB, free: 17.39 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.01013/0.281, allocations: 7.155 MB / 454.7 MB, free: 13.48 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000272/0.2813, allocations: 0.9028 MB / 455.6 MB, free: 12.77 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002755/0.2815, allocations: 62.5 kB / 455.6 MB, free: 12.76 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002382/0.2818, allocations: 227 kB / 455.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of SimCode: time 9.72e-07/0.2818, allocations: 0 / 455.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02368/0.3055, allocations: 15.68 MB / 471.5 MB, free: 400 kB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001396/0.3056, allocations: 236.3 kB / 471.8 MB, free: 136 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.951/2.256, allocations: 0 / 471.8 MB, free: 136 kB / 318.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings_res.mat --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4Windings_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4Windings.fmu > PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4Windings_res.mat does not exist to compare? outputFormat=mat