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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001211/0.001211, allocations: 107.5 kB / 16.92 MB, free: 6.145 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.001954/0.001955, allocations: 191.5 kB / 17.85 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1764/0.1764, allocations: 38.02 MB / 329.7 MB, free: 8.801 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 59.7 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09317/0.09438, allocations: 58.07 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Machines): time 0.0071/0.1015, allocations: 5.374 MB / 462.3 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006291/0.1078, allocations: 4.164 MB / 466.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000559/0.1084, allocations: 19.88 kB / 466.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01025/0.1187, allocations: 4.827 MB / 471.4 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009332/0.1196, allocations: 346.4 kB / 471.7 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007288/0.1204, allocations: 247.5 kB / 471.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002275/0.1227, allocations: 1.563 MB / 473.5 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000684/0.1234, allocations: 388.2 kB / 473.9 MB, free: 6.988 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006216/0.124, allocations: 378.6 kB / 474.2 MB, free: 6.617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007456/0.1248, allocations: 442.4 kB / 474.7 MB, free: 6.184 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000154/0.1249, allocations: 48 kB / 474.7 MB, free: 6.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003618/0.1253, allocations: 123.8 kB / 474.8 MB, free: 6.016 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003249/0.1256, allocations: 275.3 kB / 475.1 MB, free: 5.746 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004508/0.1261, allocations: 322.3 kB / 475.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008222/0.1269, allocations: 0.7319 MB / 476.2 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.1269, allocations: 0 / 476.2 MB, free: 4.695 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1269, allocations: 0 / 476.2 MB, free: 4.695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.947e-05/0.127, allocations: 4 kB / 476.2 MB, free: 4.691 MB / 350.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.001951/0.1289, allocations: 0.9094 MB / 477.1 MB, free: 3.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.129, allocations: 11.89 kB / 477.1 MB, free: 3.719 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001342/0.1291, allocations: 94.7 kB / 477.2 MB, free: 3.617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004974/0.1296, allocations: 96.05 kB / 477.3 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001126/0.1308, allocations: 0.5331 MB / 477.8 MB, free: 2.949 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.542e-05/0.1309, allocations: 29 kB / 477.8 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/0.131, allocations: 51.89 kB / 477.9 MB, free: 2.871 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001175/0.1322, allocations: 0.6492 MB / 478.5 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.902e-05/0.1322, allocations: 7.938 kB / 478.5 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.538e-05/0.1323, allocations: 19.98 kB / 478.6 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000148/0.1324, allocations: 44.97 kB / 478.6 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008378/0.1333, allocations: 0.4917 MB / 479.1 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003482/0.1368, allocations: 2.531 MB / 481.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004804/0.1373, allocations: 313.8 kB / 481.9 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002549/0.1375, allocations: 187 kB / 482.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.1376, allocations: 8.5 kB / 482.1 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.694e-05/0.1376, allocations: 38.5 kB / 482.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=32): time 2.394e-06/0.1376, allocations: 0 / 482.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.002569/0.1402, allocations: 1.639 MB / 483.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.751e-05/0.1403, allocations: 106.8 kB / 483.9 MB, free: 12.46 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004495/0.1407, allocations: 421.8 kB / 484.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.1408, allocations: 33.86 kB / 484.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002138/0.141, allocations: 311.6 kB / 484.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.682e-05/0.1411, allocations: 126.1 kB / 484.8 MB, free: 11.58 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001367/0.1412, allocations: 86.23 kB / 484.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.1414, allocations: 366.7 kB / 485.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002656/0.1417, allocations: 161 kB / 485.4 MB, free: 10.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003372/0.142, allocations: 293.8 kB / 485.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006304/0.1426, allocations: 495.7 kB / 486.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.1427, allocations: 4 kB / 486.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001336/0.144, allocations: 0.8031 MB / 487 MB, free: 9.234 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.958e-05/0.144, allocations: 8 kB / 487 MB, free: 9.227 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.144, allocations: 4 kB / 487 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000637/0.1447, allocations: 216.8 kB / 487.2 MB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003015/0.145, allocations: 79.83 kB / 487.3 MB, free: 8.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004793/0.1498, allocations: 4.234 MB / 491.5 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/0.1501, allocations: 23.92 kB / 491.5 MB, free: 4.391 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.134e-05/0.1502, allocations: 16 kB / 491.5 MB, free: 4.375 MB / 366.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.0003763/0.1506, allocations: 233.9 kB / 491.8 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.1507, allocations: 43.44 kB / 491.8 MB, free: 4.094 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000955/0.1517, allocations: 0.6379 MB / 492.4 MB, free: 3.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.1517, allocations: 4 kB / 492.4 MB, free: 3.406 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.1517, allocations: 0 / 492.4 MB, free: 3.406 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.1517, allocations: 4.031 kB / 492.4 MB, free: 3.402 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001813/0.1536, allocations: 1.195 MB / 493.6 MB, free: 2.102 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.1536, allocations: 4.062 kB / 493.6 MB, free: 2.098 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000459/0.1541, allocations: 75.88 kB / 493.7 MB, free: 2.023 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001853/0.1542, allocations: 49.69 kB / 493.8 MB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.963e-05/0.1543, allocations: 11.98 kB / 493.8 MB, free: 1.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002193/0.1565, allocations: 2.835 MB / 496.6 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.1565, allocations: 4.031 kB / 496.6 MB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001127/0.1577, allocations: 0.9491 MB / 497.6 MB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002016/0.1579, allocations: 148.5 kB / 497.7 MB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.105e-05/0.158, allocations: 16 kB / 497.7 MB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002972/0.1583, allocations: 11.98 kB / 497.7 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.412e-05/0.1583, allocations: 27.97 kB / 497.8 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.496e-05/0.1584, allocations: 8 kB / 497.8 MB, free: 13.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004233/0.1588, allocations: 295.1 kB / 498.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.1588, allocations: 0 / 498.1 MB, free: 13.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007044/0.1595, allocations: 132 kB / 498.2 MB, free: 13.17 MB / 382.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.001443/0.161, allocations: 1.506 MB / 499.7 MB, free: 11.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00153/0.1625, allocations: 0.7902 MB / 0.4888 GB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.1626, allocations: 0 / 0.4888 GB, free: 10.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005508/0.1631, allocations: 417.2 kB / 0.4892 GB, free: 10.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00075/0.1639, allocations: 127.6 kB / 0.4893 GB, free: 10.22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007917/0.1718, allocations: 5.617 MB / 0.4948 GB, free: 4.344 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006554/0.1725, allocations: 0.9405 MB / 0.4957 GB, free: 3.379 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003631/0.1729, allocations: 108.4 kB / 0.4958 GB, free: 3.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002819/0.1732, allocations: 199.4 kB / 0.496 GB, free: 3.074 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1732, allocations: 0 / 0.496 GB, free: 3.074 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05621/0.2294, allocations: 11.97 MB / 0.5077 GB, free: 7.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.34, allocations: 7.562 kB / 0.5077 GB, free: 7.246 MB / 398.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)