Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Machines,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines",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.0008701/0.0008704, allocations: 88.89 kB / 16.65 MB, free: 6.535 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.0008552/0.0008553, allocations: 176.4 kB / 17.56 MB, free: 6.18 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.485/1.485, allocations: 205.4 MB / 223.7 MB, free: 13.05 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1685/0.1685, allocations: 38.05 MB / 310.1 MB, free: 5.91 MB / 254.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.0005829/0.0005829, allocations: 15.98 kB / 377.3 MB, free: 2.609 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2277/0.2283, allocations: 56.33 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.004303/0.2327, allocations: 5.816 MB / 439.4 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004647/0.2374, allocations: 4.512 MB / 443.9 MB, free: 8.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004153/0.2378, allocations: 31.75 kB / 444 MB, free: 8.242 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006739/0.2446, allocations: 4.586 MB / 448.5 MB, free: 3.652 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005805/0.2452, allocations: 322.6 kB / 448.9 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004313/0.2456, allocations: 227.6 kB / 449.1 MB, free: 3.113 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001412/0.247, allocations: 2.129 MB / 451.2 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005929/0.2476, allocations: 0.5395 MB / 451.7 MB, free: 420 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000244/0.2479, allocations: 310.7 kB / 452 MB, free: 108 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004932/0.2484, allocations: 454.3 kB / 452.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.078e-05/0.2484, allocations: 24 kB / 452.5 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002155/0.2487, allocations: 107.8 kB / 452.6 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002169/0.2489, allocations: 259.2 kB / 452.9 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002508/0.2491, allocations: 308.1 kB / 453.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005795/0.2497, allocations: 0.7122 MB / 453.9 MB, free: 14.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2497, allocations: 12 kB / 453.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.2498, allocations: 0 / 453.9 MB, free: 14.24 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.2498, allocations: 0 / 453.9 MB, free: 14.24 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.00131/0.2511, allocations: 0.7927 MB / 454.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.2511, allocations: 8.031 kB / 454.7 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.905e-05/0.2512, allocations: 94.7 kB / 454.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003962/0.2516, allocations: 92 kB / 454.9 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008437/0.2525, allocations: 0.5369 MB / 455.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.749e-05/0.2525, allocations: 36.92 kB / 455.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.17e-05/0.2526, allocations: 51.91 kB / 455.5 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009055/0.2535, allocations: 0.6492 MB / 456.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.052e-05/0.2536, allocations: 4 kB / 456.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.401e-05/0.2536, allocations: 16 kB / 456.2 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001209/0.2537, allocations: 48.97 kB / 456.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007264/0.2545, allocations: 499.6 kB / 456.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00299/0.2575, allocations: 2.539 MB / 459.2 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004466/0.2579, allocations: 323.5 kB / 459.6 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000246/0.2582, allocations: 183 kB / 459.7 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.2582, allocations: 4 kB / 459.7 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.2583, allocations: 38.56 kB / 459.8 MB, free: 8.027 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 1.803e-06/0.2583, allocations: 0 / 459.8 MB, free: 8.027 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.002296/0.2606, allocations: 1.641 MB / 461.4 MB, free: 6.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.897e-05/0.2607, allocations: 106.8 kB / 461.5 MB, free: 6.121 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004195/0.2611, allocations: 421.8 kB / 461.9 MB, free: 5.707 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.176e-05/0.2611, allocations: 29.7 kB / 462 MB, free: 5.672 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002148/0.2613, allocations: 315.6 kB / 462.3 MB, free: 5.355 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.793e-05/0.2614, allocations: 122.2 kB / 462.4 MB, free: 5.234 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.301e-05/0.2615, allocations: 41.7 kB / 462.4 MB, free: 5.188 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.2617, allocations: 366.8 kB / 462.8 MB, free: 4.82 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002451/0.2619, allocations: 169 kB / 463 MB, free: 4.656 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003264/0.2623, allocations: 301.8 kB / 463.3 MB, free: 4.305 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005763/0.2628, allocations: 487.4 kB / 463.7 MB, free: 3.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.2628, allocations: 4 kB / 463.7 MB, free: 3.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.00122/0.2641, allocations: 0.7882 MB / 464.5 MB, free: 2.945 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.2641, allocations: 12.12 kB / 464.5 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/0.2641, allocations: 7.938 kB / 464.5 MB, free: 2.926 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006024/0.2647, allocations: 209.5 kB / 464.8 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000294/0.265, allocations: 71.89 kB / 464.8 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00403/0.2691, allocations: 3.906 MB / 468.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003002/0.2694, allocations: 20 kB / 468.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.55e-05/0.2694, allocations: 15.98 kB / 468.8 MB, free: 14.44 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0003016/0.2697, allocations: 233.6 kB / 469 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.726e-05/0.2698, allocations: 47.52 kB / 469 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008571/0.2707, allocations: 0.6333 MB / 469.7 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.2707, allocations: 4 kB / 469.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.2707, allocations: 0 / 469.7 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.2707, allocations: 7.922 kB / 469.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001509/0.2723, allocations: 1.195 MB / 470.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.2723, allocations: 3.984 kB / 470.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000401/0.2727, allocations: 75.89 kB / 471 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001477/0.2728, allocations: 53.73 kB / 471 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.876e-05/0.2729, allocations: 12 kB / 471 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001712/0.2746, allocations: 2.626 MB / 473.6 MB, free: 9.121 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.2746, allocations: 4.031 kB / 473.6 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009903/0.2756, allocations: 0.9568 MB / 474.6 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.2758, allocations: 152.5 kB / 474.8 MB, free: 7.922 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.254e-05/0.2758, allocations: 12 kB / 474.8 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002383/0.2761, allocations: 11.98 kB / 474.8 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.603e-05/0.2761, allocations: 27.97 kB / 474.8 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.26e-05/0.2762, allocations: 11.94 kB / 474.8 MB, free: 7.859 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002963/0.2765, allocations: 295.1 kB / 475.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2765, allocations: 0 / 475.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005612/0.277, allocations: 132 kB / 475.2 MB, free: 7.441 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (asynchron.i[3],asynchron.phi_el,asynchron.psi_s[1],asynchron.psi_s[2],asynchron.psi_rd[1],asynchron.psi_rq[1],rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001288/0.2783, allocations: 1.517 MB / 476.8 MB, free: 5.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001197/0.2795, allocations: 0.7281 MB / 477.5 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2796, allocations: 0 / 477.5 MB, free: 5.086 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000493/0.2801, allocations: 433 kB / 477.9 MB, free: 4.637 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007462/0.2808, allocations: 107.1 kB / 478 MB, free: 4.535 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006997/0.2878, allocations: 5.962 MB / 484 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005619/0.2884, allocations: 0.9444 MB / 484.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003402/0.2888, allocations: 104.4 kB / 485 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002553/0.289, allocations: 199.4 kB / 485.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.289, allocations: 0 / 485.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02469/0.3137, allocations: 11.36 MB / 496.6 MB, free: 1.715 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002243/0.314, allocations: 230.5 kB / 496.8 MB, free: 1.457 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.868/2.182, allocations: 0 / 496.8 MB, free: 1.457 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_Machines.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.Machines.pipe 2>&1)