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.00114/0.001139, allocations: 98.11 kB / 16.5 MB, free: 6.688 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.001231/0.001231, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.418/1.418, allocations: 205.1 MB / 223.3 MB, free: 12.49 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.166/0.166, allocations: 37.99 MB / 308.6 MB, free: 6.242 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.001528/0.001528, allocations: 67.03 kB / 374.7 MB, free: 4.016 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2465, allocations: 55.24 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.005679/0.2522, allocations: 6.228 MB / 436.2 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005036/0.2573, allocations: 4.593 MB / 440.8 MB, free: 8.902 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004667/0.2578, allocations: 35.75 kB / 440.8 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007718/0.2655, allocations: 4.758 MB / 445.6 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001193/0.2667, allocations: 326.6 kB / 445.9 MB, free: 3.781 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006067/0.2673, allocations: 223.6 kB / 446.1 MB, free: 3.562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00173/0.2691, allocations: 2.133 MB / 448.2 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005165/0.2696, allocations: 340.2 kB / 448.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003559/0.27, allocations: 318.6 kB / 448.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004483/0.2704, allocations: 466.3 kB / 449.3 MB, free: 332 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.057e-05/0.2705, allocations: 32 kB / 449.4 MB, free: 300 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002489/0.2708, allocations: 127.8 kB / 449.5 MB, free: 172 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002209/0.271, allocations: 259.4 kB / 449.8 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002912/0.2713, allocations: 310.2 kB / 450.1 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000669/0.272, allocations: 0.728 MB / 450.8 MB, free: 14.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.272, allocations: 0 / 450.8 MB, free: 14.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.272, allocations: 0 / 450.8 MB, free: 14.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.272, allocations: 0 / 450.8 MB, free: 14.88 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.001842/0.2739, allocations: 0.9017 MB / 451.7 MB, free: 13.92 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.836e-05/0.2739, allocations: 12.03 kB / 451.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001222/0.2741, allocations: 90.69 kB / 451.8 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004816/0.2745, allocations: 96.06 kB / 451.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001159/0.2757, allocations: 0.5292 MB / 452.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.235e-05/0.2758, allocations: 33 kB / 452.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.44e-05/0.2759, allocations: 47.89 kB / 452.5 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00108/0.2769, allocations: 0.6608 MB / 453.2 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.005e-05/0.277, allocations: 3.938 kB / 453.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.53e-05/0.2771, allocations: 19.98 kB / 453.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001573/0.2772, allocations: 56.91 kB / 453.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000765/0.278, allocations: 499.6 kB / 453.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003621/0.2816, allocations: 2.527 MB / 456.2 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005127/0.2822, allocations: 315.6 kB / 456.6 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002612/0.2824, allocations: 191 kB / 456.7 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.638e-05/0.2825, allocations: 4 kB / 456.7 MB, free: 8.602 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.868e-05/0.2825, allocations: 34.56 kB / 456.8 MB, free: 8.559 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 2.865e-06/0.2825, allocations: 0 / 456.8 MB, free: 8.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.002487/0.285, allocations: 1.637 MB / 458.4 MB, free: 6.785 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.889e-05/0.2851, allocations: 114.9 kB / 458.5 MB, free: 6.648 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004267/0.2855, allocations: 421.8 kB / 458.9 MB, free: 6.234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/0.2856, allocations: 33.7 kB / 459 MB, free: 6.195 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001909/0.2858, allocations: 307.6 kB / 459.3 MB, free: 5.887 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.503e-05/0.2859, allocations: 126.2 kB / 459.4 MB, free: 5.762 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001229/0.286, allocations: 86.25 kB / 459.5 MB, free: 5.672 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.2862, allocations: 362.7 kB / 459.8 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002423/0.2864, allocations: 161 kB / 460 MB, free: 5.148 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003325/0.2867, allocations: 302.3 kB / 460.3 MB, free: 4.801 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006023/0.2874, allocations: 495.4 kB / 460.8 MB, free: 4.258 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2874, allocations: 0 / 460.8 MB, free: 4.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001287/0.2887, allocations: 0.7996 MB / 461.6 MB, free: 3.426 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.2887, allocations: 8 kB / 461.6 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.2887, allocations: 4 kB / 461.6 MB, free: 3.414 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006651/0.2894, allocations: 213.8 kB / 461.8 MB, free: 3.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003172/0.2897, allocations: 79.83 kB / 461.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01884/0.3086, allocations: 3.887 MB / 465.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005105/0.3091, allocations: 12 kB / 465.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.358e-05/0.3092, allocations: 27.98 kB / 465.8 MB, free: 14.93 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.0003649/0.3095, allocations: 229.5 kB / 466 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.3097, allocations: 51.44 kB / 466.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000931/0.3106, allocations: 0.6332 MB / 466.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.3106, allocations: 4 kB / 466.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.591e-06/0.3106, allocations: 4 kB / 466.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.3106, allocations: 7.922 kB / 466.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001586/0.3122, allocations: 1.191 MB / 467.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.3122, allocations: 4 kB / 467.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004382/0.3127, allocations: 71.88 kB / 468 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000171/0.3129, allocations: 57.67 kB / 468 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.71e-05/0.3129, allocations: 16.06 kB / 468.1 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001705/0.3146, allocations: 2.626 MB / 470.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.3147, allocations: 12.09 kB / 470.7 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001028/0.3157, allocations: 0.9567 MB / 471.7 MB, free: 8.566 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.3159, allocations: 152.4 kB / 471.8 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.453e-05/0.3159, allocations: 8 kB / 471.8 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002605/0.3162, allocations: 15.98 kB / 471.8 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.559e-05/0.3163, allocations: 23.97 kB / 471.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.502e-05/0.3163, allocations: 8 kB / 471.9 MB, free: 8.344 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002879/0.3166, allocations: 291.1 kB / 472.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3166, allocations: 4 kB / 472.1 MB, free: 8.055 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006272/0.3172, allocations: 136 kB / 472.3 MB, free: 7.922 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.0013/0.3185, allocations: 1.509 MB / 473.8 MB, free: 6.328 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001278/0.3198, allocations: 0.7199 MB / 474.5 MB, free: 5.582 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3198, allocations: 0 / 474.5 MB, free: 5.582 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005095/0.3204, allocations: 433.9 kB / 474.9 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007517/0.3211, allocations: 113.4 kB / 475 MB, free: 5.027 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007762/0.3289, allocations: 5.823 MB / 480.9 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006491/0.3296, allocations: 0.9366 MB / 481.8 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00038/0.33, allocations: 104.4 kB / 481.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002861/0.3303, allocations: 199.4 kB / 482.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3303, allocations: 4 kB / 482.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03004/0.3603, allocations: 11.53 MB / 493.6 MB, free: 2.152 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002429/0.3606, allocations: 236.1 kB / 493.9 MB, free: 1.891 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.934/2.295, allocations: 0 / 493.9 MB, free: 1.891 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)