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.001043/0.00105, allocations: 94.72 kB / 16.3 MB, free: 5.996 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.001269/0.001269, allocations: 183.1 kB / 17.2 MB, free: 5.898 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.381/1.381, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1695/0.1695, allocations: 38.04 MB / 309.7 MB, free: 6.133 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.0005083/0.0005084, allocations: 12 kB / 376.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2102/0.2107, allocations: 56.32 MB / 432.9 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.004423/0.2152, allocations: 5.285 MB / 438.2 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004628/0.2198, allocations: 4.102 MB / 442.3 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003962/0.2203, allocations: 39.69 kB / 442.3 MB, free: 9.352 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003533/0.2238, allocations: 1.665 MB / 444 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007285/0.2246, allocations: 279 kB / 444.3 MB, free: 7.406 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000571/0.2251, allocations: 235.5 kB / 444.5 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00046/0.2256, allocations: 483.4 kB / 445 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006239/0.2262, allocations: 498.5 kB / 445.5 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002534/0.2265, allocations: 259 kB / 445.7 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002995/0.2268, allocations: 286.9 kB / 446 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.777e-05/0.2269, allocations: 24 kB / 446 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001726/0.2271, allocations: 63.91 kB / 446.1 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001673/0.2272, allocations: 231.4 kB / 446.3 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.176e-05/0.2273, allocations: 141.3 kB / 446.4 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003688/0.2277, allocations: 0.5532 MB / 447 MB, free: 4.637 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.364e-06/0.2277, allocations: 0 / 447 MB, free: 4.637 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2277, allocations: 0 / 447 MB, free: 4.637 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.2277, allocations: 4 kB / 447 MB, free: 4.633 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: 121 * Number of variables: 121 Notification: Performance of Generate backend data structure: time 0.001194/0.2289, allocations: 0.8042 MB / 447.8 MB, free: 3.777 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.229, allocations: 12.03 kB / 447.8 MB, free: 3.766 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.353e-05/0.2291, allocations: 86.52 kB / 447.9 MB, free: 3.672 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000412/0.2295, allocations: 107.1 kB / 448 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009225/0.2304, allocations: 0.5132 MB / 448.5 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.953e-05/0.2305, allocations: 32.98 kB / 448.6 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.963e-05/0.2306, allocations: 47.91 kB / 448.6 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007649/0.2313, allocations: 0.6491 MB / 449.2 MB, free: 2.242 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.2314, allocations: 3.938 kB / 449.3 MB, free: 2.238 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.084e-05/0.2314, allocations: 16 kB / 449.3 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001191/0.2315, allocations: 48.97 kB / 449.3 MB, free: 2.176 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000611/0.2322, allocations: 495.5 kB / 449.8 MB, free: 1.691 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0029/0.2351, allocations: 2.535 MB / 452.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005004/0.2356, allocations: 322.6 kB / 452.6 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.873e-05/0.2356, allocations: 4.062 kB / 452.7 MB, free: 14.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.2357, allocations: 42.5 kB / 452.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 1.963e-06/0.2357, allocations: 0 / 452.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.002607/0.2383, allocations: 1.634 MB / 454.3 MB, free: 12.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.717e-05/0.2384, allocations: 106.8 kB / 454.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004732/0.2388, allocations: 426 kB / 454.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.412e-05/0.2389, allocations: 33.7 kB / 454.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002215/0.2391, allocations: 303.6 kB / 455.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.2392, allocations: 130.2 kB / 455.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.102e-05/0.2393, allocations: 8 kB / 455.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.2394, allocations: 358.8 kB / 455.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002462/0.2397, allocations: 165 kB / 455.8 MB, free: 11.31 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003315/0.24, allocations: 297.8 kB / 456.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003145/0.2404, allocations: 211.6 kB / 456.3 MB, free: 10.76 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.2404, allocations: 4 kB / 456.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001237/0.2416, allocations: 0.7956 MB / 457.1 MB, free: 9.926 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.2416, allocations: 8 kB / 457.1 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.447e-06/0.2417, allocations: 4 kB / 457.1 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006128/0.2423, allocations: 213.7 kB / 457.3 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/0.2426, allocations: 71.89 kB / 457.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004197/0.2468, allocations: 3.983 MB / 461.4 MB, free: 5.391 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002713/0.2471, allocations: 16 kB / 461.4 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.917e-05/0.2471, allocations: 23.98 kB / 461.4 MB, free: 5.352 MB / 334.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0002834/0.2474, allocations: 229.7 kB / 461.7 MB, free: 5.117 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.919e-05/0.2475, allocations: 43.44 kB / 461.7 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000875/0.2484, allocations: 0.6371 MB / 462.3 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.2484, allocations: 8 kB / 462.3 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.2484, allocations: 0 / 462.3 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.2485, allocations: 7.922 kB / 462.4 MB, free: 4.371 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001591/0.25, allocations: 1.183 MB / 463.5 MB, free: 3.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.2501, allocations: 3.953 kB / 463.5 MB, free: 3.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000425/0.2505, allocations: 79.88 kB / 463.6 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001508/0.2507, allocations: 53.61 kB / 463.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.175e-05/0.2507, allocations: 12 kB / 463.7 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001754/0.2525, allocations: 2.638 MB / 466.3 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.2525, allocations: 12.03 kB / 466.3 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.2536, allocations: 1.006 MB / 467.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00018/0.2538, allocations: 144.5 kB / 467.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.887e-05/0.2538, allocations: 15.98 kB / 467.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002448/0.2541, allocations: 8 kB / 467.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.306e-05/0.2541, allocations: 31.95 kB / 467.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-05/0.2542, allocations: 12 kB / 467.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002826/0.2545, allocations: 287.1 kB / 467.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2545, allocations: 0 / 467.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000551/0.255, allocations: 132 kB / 468 MB, free: 14.28 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00137/0.2564, allocations: 1.827 MB / 469.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001125/0.2575, allocations: 0.7201 MB / 470.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2576, allocations: 0 / 470.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004831/0.258, allocations: 418.3 kB / 470.9 MB, free: 11.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005413/0.2586, allocations: 105.9 kB / 471 MB, free: 11.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006089/0.2647, allocations: 6.68 MB / 477.7 MB, free: 4.219 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005157/0.2652, allocations: 0.9521 MB / 478.6 MB, free: 3.238 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003442/0.2656, allocations: 104.4 kB / 478.7 MB, free: 3.137 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000254/0.2659, allocations: 199.4 kB / 478.9 MB, free: 2.945 MB / 350.1 MB Notification: Performance of SimCode: time 8.31e-07/0.2659, allocations: 0 / 478.9 MB, free: 2.945 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.2889, allocations: 11.38 MB / 490.3 MB, free: 7.609 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001593/0.2891, allocations: 205.6 kB / 490.5 MB, free: 7.371 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.836/2.125, allocations: 0 / 490.5 MB, free: 7.371 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/linux/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) Environment - environmentSimulation: