Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Electrical.Test.SynchronousMachine4WindingsAccurate.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) Ignoring simflag -noemit -homotopyOnFirstTry=() since it seems broken on HelloWorld Running command: "" <> buildModelFMU(PowerGrids.Electrical.Test.SynchronousMachine4WindingsAccurate,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_SynchronousMachine4WindingsAccurate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerGrids.Electrical.Test.SynchronousMachine4WindingsAccurate,fileNamePrefix="PowerGrids_symb_jac_PowerGrids_Electrical_Test_SynchronousMachine4WindingsAccurate",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.001054/0.001054, allocations: 96.27 kB / 15.7 MB, free: 472 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 177.9 kB / 16.58 MB, free: 6.855 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.721/1.721, allocations: 205.4 MB / 222.7 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.05873/0.05873, allocations: 14.17 MB / 285.2 MB, free: 7.137 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.0005437/0.0005441, allocations: 12 kB / 348.2 MB, free: 18.48 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1559, allocations: 51.11 MB / 399.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.SynchronousMachine4WindingsAccurate): time 0.006388/0.1623, allocations: 4.589 MB / 403.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004829/0.1672, allocations: 2.713 MB / 406.6 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004999/0.1677, allocations: 8 kB / 406.6 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006147/0.1684, allocations: 202.8 kB / 406.8 MB, free: 7.777 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002598/0.171, allocations: 1.035 MB / 407.9 MB, free: 6.746 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008773/0.1719, allocations: 387 kB / 408.2 MB, free: 6.367 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001675/0.1736, allocations: 0.9559 MB / 409.2 MB, free: 5.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002148/0.1738, allocations: 85.97 kB / 409.3 MB, free: 5.328 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005772/0.1744, allocations: 426.6 kB / 409.7 MB, free: 4.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005373/0.1749, allocations: 454.3 kB / 410.1 MB, free: 4.465 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.541e-05/0.175, allocations: 36 kB / 410.2 MB, free: 4.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007197/0.1757, allocations: 243.8 kB / 410.4 MB, free: 4.191 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001298/0.1759, allocations: 135.4 kB / 410.5 MB, free: 4.059 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001678/0.176, allocations: 165.3 kB / 410.7 MB, free: 3.891 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001067/0.1771, allocations: 0.7948 MB / 411.5 MB, free: 3.094 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.1771, allocations: 0 / 411.5 MB, free: 3.094 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1771, allocations: 0 / 411.5 MB, free: 3.094 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.846e-06/0.1772, allocations: 0 / 411.5 MB, free: 3.094 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.003489/0.1807, allocations: 1.227 MB / 412.7 MB, free: 1.812 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.765e-05/0.1807, allocations: 12.02 kB / 412.7 MB, free: 1.801 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001268/0.1809, allocations: 78.53 kB / 412.8 MB, free: 1.715 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003602/0.1812, allocations: 107 kB / 412.9 MB, free: 1.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009008/0.1821, allocations: 0.5273 MB / 413.4 MB, free: 1.047 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.932e-05/0.1822, allocations: 41 kB / 413.5 MB, free: 1.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.739e-05/0.1823, allocations: 63.91 kB / 413.5 MB, free: 0.9453 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007984/0.1831, allocations: 482 kB / 414 MB, free: 468 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.1831, allocations: 0 / 414 MB, free: 468 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.22e-05/0.1832, allocations: 20 kB / 414 MB, free: 448 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.517e-05/0.1832, allocations: 16 kB / 414.1 MB, free: 432 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00085/0.1841, allocations: 487.7 kB / 414.5 MB, free: 15.95 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.004875/0.1889, allocations: 2.875 MB / 417.4 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001645/0.1906, allocations: 0.784 MB / 418.2 MB, free: 11.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.605e-05/0.1907, allocations: 12.55 kB / 418.2 MB, free: 11.92 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.923e-05/0.1907, allocations: 39.12 kB / 418.2 MB, free: 11.87 MB / 318.1 MB Notification: Performance of pre-optimization done (n=62): time 4.789e-06/0.1908, allocations: 0 / 418.2 MB, free: 11.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=63): time 0.005514/0.1963, allocations: 2.043 MB / 420.3 MB, free: 9.754 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.1964, allocations: 59.97 kB / 420.3 MB, free: 9.684 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006013/0.197, allocations: 0.4986 MB / 420.8 MB, free: 9.172 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.911e-05/0.197, allocations: 45.7 kB / 420.9 MB, free: 9.121 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001997/0.1972, allocations: 257.2 kB / 421.1 MB, free: 8.863 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002037/0.1975, allocations: 236.6 kB / 421.4 MB, free: 8.629 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.668e-05/0.1975, allocations: 20 kB / 421.4 MB, free: 8.609 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001838/0.1977, allocations: 374.8 kB / 421.8 MB, free: 8.234 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005704/0.1983, allocations: 333.9 kB / 422.1 MB, free: 7.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006272/0.1989, allocations: 405.4 kB / 422.5 MB, free: 7.504 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006708/0.1996, allocations: 383 kB / 422.8 MB, free: 7.133 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1996, allocations: 0 / 422.8 MB, free: 7.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.004983/0.2046, allocations: 1.593 MB / 424.4 MB, free: 5.516 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001606/0.2048, allocations: 290.9 kB / 424.7 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.2048, allocations: 0 / 424.7 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005103/0.2099, allocations: 1.015 MB / 425.7 MB, free: 4.184 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009178/0.2108, allocations: 203.8 kB / 425.9 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2416/0.4524, allocations: 9.527 MB / 435.5 MB, free: 24.47 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007995/0.4532, allocations: 33.02 kB / 435.5 MB, free: 24.47 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.389e-05/0.4533, allocations: 33.89 kB / 435.5 MB, free: 24.47 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.233e-05/0.4533, allocations: 4 kB / 435.5 MB, free: 24.47 MB / 318.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003028/0.4564, allocations: 1.195 MB / 436.7 MB, free: 24.39 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.7e-06/0.4564, allocations: 1.625 kB / 436.7 MB, free: 24.39 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002523/0.4589, allocations: 0.6157 MB / 437.3 MB, free: 24.33 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009623/0.4599, allocations: 222.1 kB / 437.6 MB, free: 24.33 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009509/0.4694, allocations: 10.64 MB / 448.2 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008685/0.4703, allocations: 27.83 kB / 448.2 MB, free: 15.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.917e-05/0.4704, allocations: 29.86 kB / 448.3 MB, free: 15.32 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 (87): * Single equations (assignments): 82 * 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 {3 12,3 7,4 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004494/0.4708, allocations: 277.4 kB / 448.5 MB, free: 15.13 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.471, allocations: 65.78 kB / 448.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001791/0.4728, allocations: 0.7841 MB / 449.4 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.4728, allocations: 5.531 kB / 449.4 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.375e-06/0.4728, allocations: 8.578 kB / 449.4 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.241e-05/0.4728, allocations: 7.375 kB / 449.4 MB, free: 15.02 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.00283/0.4757, allocations: 1.562 MB / 451 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.4757, allocations: 0 / 451 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006496/0.4763, allocations: 135.9 kB / 451.1 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009649/0.4773, allocations: 276.6 kB / 451.4 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.219e-05/0.4774, allocations: 15.67 kB / 451.4 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003684/0.4811, allocations: 2.437 MB / 453.8 MB, free: 13.22 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4811, allocations: 5 kB / 453.8 MB, free: 13.21 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01596/0.497, allocations: 8.751 MB / 462.6 MB, free: 8.34 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002262/0.4973, allocations: 183 kB / 462.8 MB, free: 8.184 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.545e-05/0.4974, allocations: 13.66 kB / 462.8 MB, free: 8.176 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003702/0.4978, allocations: 25.45 kB / 462.8 MB, free: 8.164 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001674/0.498, allocations: 50.47 kB / 462.8 MB, free: 8.152 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-05/0.498, allocations: 14.81 kB / 462.9 MB, free: 8.148 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003925/0.4984, allocations: 329.6 kB / 463.2 MB, free: 7.992 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4984, allocations: 3.828 kB / 463.2 MB, free: 7.992 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002371/0.5008, allocations: 0.6156 MB / 463.8 MB, free: 7.922 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 (48): * Single equations (assignments): 47 * 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: 1 {(6,61.1%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002387/0.5032, allocations: 1.714 MB / 465.5 MB, free: 6.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004651/0.5078, allocations: 2.998 MB / 468.5 MB, free: 4.613 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.5079, allocations: 0 / 468.5 MB, free: 4.613 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009376/0.5088, allocations: 0.5303 MB / 469 MB, free: 4.086 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006167/0.5094, allocations: 79.22 kB / 469.1 MB, free: 4.012 MB / 318.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.004404/0.5138, allocations: 3.005 MB / 472.1 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000569/0.5144, allocations: 0.9478 MB / 473.1 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005008/0.5149, allocations: 88.8 kB / 473.2 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000374/0.5153, allocations: 222.7 kB / 473.4 MB, free: 15.68 MB / 334.1 MB Notification: Performance of SimCode: time 1.383e-06/0.5153, allocations: 0 / 473.4 MB, free: 15.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05249/0.5678, allocations: 21.91 MB / 495.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002023/0.5681, allocations: 244.9 kB / 495.5 MB, free: 9.617 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.366/2.934, allocations: 6.672 kB / 495.5 MB, free: 9.613 MB / 350.1 MB (rm -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.SynchronousMachine4WindingsAccurate.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Electrical.Test.SynchronousMachine4WindingsAccurate.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Electrical.Test.SynchronousMachine4WindingsAccurate.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.SynchronousMachine4WindingsAccurate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerGrids_symb_jac_PowerGrids_Electrical_Test_SynchronousMachine4WindingsAccurate_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerGrids_symb_jac_PowerGrids_Electrical_Test_SynchronousMachine4WindingsAccurate.fmu > PowerGrids_symb_jac_PowerGrids.Electrical.Test.SynchronousMachine4WindingsAccurate.pipe 2>&1) Environment - environmentSimulation: