Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsPowerSwing.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.2/package.mo", uses=false) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/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.SynchronousMachine4WindingsPowerSwing,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4WindingsPowerSwing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.SynchronousMachine4WindingsPowerSwing,fileNamePrefix="PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4WindingsPowerSwing",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.000966/0.000966, allocations: 98.45 kB / 15.05 MB, free: 1.105 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.001016/0.001016, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.743/1.743, allocations: 205.4 MB / 222.1 MB, free: 5.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05835/0.05835, allocations: 14.18 MB / 284.5 MB, free: 7.02 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.0004948/0.0004948, allocations: 20.22 kB / 346.2 MB, free: 19.81 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09752/0.09803, allocations: 51.12 MB / 397.4 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.SynchronousMachine4WindingsPowerSwing): time 0.008197/0.1063, allocations: 8.163 MB / 405.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007796/0.1141, allocations: 4.164 MB / 409.7 MB, free: 4.266 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001761/0.1159, allocations: 19.94 kB / 409.7 MB, free: 4.246 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001634/0.1176, allocations: 377.9 kB / 410.1 MB, free: 3.875 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004956/0.1226, allocations: 1.606 MB / 411.7 MB, free: 2.277 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001628/0.1242, allocations: 0.6695 MB / 412.3 MB, free: 1.609 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003442/0.1277, allocations: 1.931 MB / 414.3 MB, free: 15.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003198/0.128, allocations: 159.6 kB / 414.4 MB, free: 15.51 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001105/0.1291, allocations: 0.7747 MB / 415.2 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009272/0.13, allocations: 0.8329 MB / 416 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001074/0.1302, allocations: 60 kB / 416.1 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009495/0.1311, allocations: 403.5 kB / 416.5 MB, free: 13.45 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001766/0.1313, allocations: 219 kB / 416.7 MB, free: 13.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002621/0.1316, allocations: 301 kB / 417 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001393/0.133, allocations: 1.492 MB / 418.5 MB, free: 11.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.133, allocations: 0 / 418.5 MB, free: 11.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.133, allocations: 0 / 418.5 MB, free: 11.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.523e-05/0.133, allocations: 7.938 kB / 418.5 MB, free: 11.43 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.00611/0.1391, allocations: 2.092 MB / 420.6 MB, free: 9.277 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.1392, allocations: 12.02 kB / 420.6 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00023/0.1394, allocations: 152.2 kB / 420.8 MB, free: 9.109 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001415/0.1408, allocations: 273.9 kB / 421 MB, free: 8.84 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001692/0.1426, allocations: 0.8633 MB / 421.9 MB, free: 7.934 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.248e-05/0.1426, allocations: 90 kB / 422 MB, free: 7.844 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001723/0.1428, allocations: 115.9 kB / 422.1 MB, free: 7.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001583/0.1444, allocations: 0.9993 MB / 423.1 MB, free: 6.711 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.1444, allocations: 4 kB / 423.1 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.069e-05/0.1445, allocations: 47.94 kB / 423.1 MB, free: 6.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.066e-05/0.1446, allocations: 24 kB / 423.2 MB, free: 6.637 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001661/0.1462, allocations: 1.062 MB / 424.2 MB, free: 5.57 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.2192/0.3654, allocations: 6.197 MB / 430.4 MB, free: 21.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002426/0.3679, allocations: 1.664 MB / 432.1 MB, free: 20.53 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.799e-05/0.368, allocations: 18.66 kB / 432.1 MB, free: 20.53 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.253e-05/0.368, allocations: 51.81 kB / 432.1 MB, free: 20.49 MB / 318.1 MB Notification: Performance of pre-optimization done (n=131): time 4.418e-06/0.3681, allocations: 1.672 kB / 432.1 MB, free: 20.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01344/0.3815, allocations: 4.298 MB / 436.4 MB, free: 19.91 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.977e-05/0.3816, allocations: 65.88 kB / 436.5 MB, free: 19.84 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001163/0.3828, allocations: 0.7686 MB / 437.3 MB, free: 19.69 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001432/0.3829, allocations: 56.14 kB / 437.3 MB, free: 19.66 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003371/0.3833, allocations: 462.8 kB / 437.8 MB, free: 19.49 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003961/0.3837, allocations: 467 kB / 438.2 MB, free: 19.19 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.68e-05/0.3837, allocations: 37.95 kB / 438.3 MB, free: 19.19 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.3839, allocations: 364.2 kB / 438.6 MB, free: 18.88 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001011/0.3849, allocations: 0.5324 MB / 439.2 MB, free: 18.88 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001084/0.386, allocations: 0.6729 MB / 439.8 MB, free: 18.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.387, allocations: 0.6285 MB / 440.5 MB, free: 18.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.3871, allocations: 0.5 kB / 440.5 MB, free: 18.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=202) (initialization): time 0.01341/0.4005, allocations: 2.7 MB / 443.2 MB, free: 18.53 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000149/0.4007, allocations: 0.7213 MB / 443.9 MB, free: 17.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.4007, allocations: 2.156 kB / 443.9 MB, free: 17.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01478/0.4155, allocations: 1.755 MB / 445.6 MB, free: 17.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001544/0.417, allocations: 328.1 kB / 446 MB, free: 17.68 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01834/0.4354, allocations: 12.34 MB / 458.3 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/0.4369, allocations: 71.89 kB / 458.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.569e-05/0.437, allocations: 56.61 kB / 458.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.759e-06/0.4371, allocations: 3.219 kB / 458.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003873/0.4409, allocations: 1.956 MB / 460.4 MB, free: 9.891 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.441, allocations: 0 / 460.4 MB, free: 9.891 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002887/0.4439, allocations: 0.8386 MB / 461.2 MB, free: 9.453 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001462/0.4453, allocations: 349.7 kB / 461.6 MB, free: 9.387 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01129/0.4566, allocations: 12.73 MB / 474.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001215/0.4579, allocations: 75.81 kB / 474.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.271e-05/0.458, allocations: 48 kB / 474.4 MB, free: 11.77 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (143): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 3 {7 33,4 6,4 6} Notification: Performance of prepare postOptimizeDAE: time 0.0006072/0.4586, allocations: 359.5 kB / 474.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001768/0.4588, allocations: 118.5 kB / 474.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00295/0.4617, allocations: 1.565 MB / 476.5 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.4617, allocations: 13.53 kB / 476.5 MB, free: 9.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.4618, allocations: 3.953 kB / 476.5 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.4618, allocations: 7.969 kB / 476.5 MB, free: 9.719 MB / 334.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.004294/0.4661, allocations: 2.943 MB / 479.4 MB, free: 6.723 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.4661, allocations: 4 kB / 479.4 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.4671, allocations: 242.5 kB / 479.7 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001648/0.4688, allocations: 0.5393 MB / 480.2 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.833e-05/0.4688, allocations: 23.56 kB / 480.2 MB, free: 5.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005977/0.4748, allocations: 4.2 MB / 484.4 MB, free: 1.605 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4749, allocations: 4 kB / 484.4 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003531/0.4784, allocations: 2.169 MB / 486.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004156/0.4788, allocations: 279.5 kB / 486.9 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001446/0.479, allocations: 28 kB / 486.9 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006781/0.4797, allocations: 59.69 kB / 487 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.4798, allocations: 97.12 kB / 487.1 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.493e-05/0.4799, allocations: 32 kB / 487.1 MB, free: 14.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006086/0.4805, allocations: 0.4953 MB / 487.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4805, allocations: 0 / 487.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002193/0.4827, allocations: 0.831 MB / 488.4 MB, free: 13.6 MB / 350.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 (92): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {10 33} Notification: Performance of Backend phase and start with SimCode phase: time 0.004284/0.487, allocations: 2.798 MB / 491.2 MB, free: 10.82 MB / 350.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is set to 'isProtected' (=false) by default. Notification: Performance of simCode: created initialization part: time 0.007992/0.495, allocations: 4.173 MB / 495.4 MB, free: 6.516 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.4951, allocations: 0 / 495.4 MB, free: 6.516 MB / 350.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is set to 'isProtected' (=false) by default. Notification: Performance of simCode: created simulation system equations: time 0.001889/0.497, allocations: 0.9814 MB / 496.4 MB, free: 5.543 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009216/0.4979, allocations: 123.8 kB / 496.5 MB, free: 5.426 MB / 350.1 MB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is set to 'isProtected' (=false) by default. Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005542/0.5034, allocations: 4.537 MB / 0.4893 GB, free: 0.7773 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007278/0.5042, allocations: 1.161 MB / 0.4904 GB, free: 15.58 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007957/0.505, allocations: 156.6 kB / 0.4906 GB, free: 15.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005377/0.5055, allocations: 439.3 kB / 0.491 GB, free: 15 MB / 366.1 MB Notification: Performance of SimCode: time 9.11e-07/0.5055, allocations: 0 / 0.491 GB, free: 15 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0615/0.567, allocations: 36.41 MB / 0.5265 GB, free: 10.67 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001667/0.5673, allocations: 230.3 kB / 0.5268 GB, free: 10.42 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.173/3.74, allocations: 0 / 0.5268 GB, free: 10.42 MB / 398.1 MB (rm -f PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsPowerSwing.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsPowerSwing.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsPowerSwing.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsPowerSwing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4WindingsPowerSwing_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 PowerGrids_PowerGrids_Electrical_Test_SynchronousMachine4WindingsPowerSwing.fmu > PowerGrids_PowerGrids.Electrical.Test.SynchronousMachine4WindingsPowerSwing.pipe 2>&1) Environment - environmentSimulation: