Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Machines,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001727/0.001732, allocations: 108.1 kB / 16.92 MB, free: 5.762 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.001351/0.001351, allocations: 187.3 kB / 17.85 MB, free: 5.176 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.369/1.369, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1734/0.1734, allocations: 38.03 MB / 329.7 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 66.48 kB / 398.8 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.119, allocations: 58.05 MB / 456.8 MB, free: 8.082 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Machines): time 0.007509/0.1266, allocations: 4.547 MB / 461.4 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002475/0.1291, allocations: 1.491 MB / 462.9 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002898/0.1294, allocations: 11.94 kB / 462.9 MB, free: 2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004544/0.1299, allocations: 111.2 kB / 463 MB, free: 1.891 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006936/0.1307, allocations: 282.3 kB / 463.3 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003502/0.131, allocations: 111.8 kB / 463.4 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007052/0.1318, allocations: 0.498 MB / 463.9 MB, free: 1.004 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002898/0.1321, allocations: 167.8 kB / 464.1 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002582/0.1323, allocations: 199.2 kB / 464.2 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003233/0.1327, allocations: 211.1 kB / 464.5 MB, free: 452 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.054e-05/0.1327, allocations: 24 kB / 464.5 MB, free: 428 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.544e-05/0.1328, allocations: 28 kB / 464.5 MB, free: 400 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001344/0.1329, allocations: 111.6 kB / 464.6 MB, free: 288 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001827/0.1331, allocations: 175.1 kB / 464.8 MB, free: 112 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003904/0.1335, allocations: 378.8 kB / 465.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1335, allocations: 0 / 465.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1336, allocations: 0 / 465.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.154e-06/0.1336, allocations: 0 / 465.2 MB, free: 15.73 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.00099/0.1346, allocations: 0.6631 MB / 465.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.1346, allocations: 15.89 kB / 465.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.653e-05/0.1347, allocations: 40.47 kB / 465.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005408/0.1352, allocations: 375.7 kB / 466.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.295e-05/0.1353, allocations: 28.44 kB / 466.3 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.779e-05/0.1353, allocations: 24 kB / 466.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005144/0.1358, allocations: 338.2 kB / 466.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.1359, allocations: 4 kB / 466.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.655e-05/0.1359, allocations: 11.94 kB / 466.6 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.1359, allocations: 8 kB / 466.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003342/0.1363, allocations: 205.5 kB / 466.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.1379, allocations: 1.486 MB / 468.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004455/0.1384, allocations: 201.9 kB / 468.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001372/0.1385, allocations: 79.41 kB / 468.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.126e-05/0.1386, allocations: 4 kB / 468.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001757/0.1388, allocations: 42.55 kB / 468.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.482e-06/0.1388, allocations: 0 / 468.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=18): time 0.001197/0.14, allocations: 0.6858 MB / 469.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.1401, allocations: 136.8 kB / 469.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003644/0.1405, allocations: 313.7 kB / 469.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.1405, allocations: 29.7 kB / 469.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001939/0.1407, allocations: 215.8 kB / 470 MB, free: 10.49 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.838e-05/0.1408, allocations: 66.95 kB / 470.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.485e-05/0.1409, allocations: 57.67 kB / 470.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.1411, allocations: 342.8 kB / 470.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.1412, allocations: 47.97 kB / 470.5 MB, free: 9.973 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001562/0.1414, allocations: 144.8 kB / 470.7 MB, free: 9.785 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003652/0.1417, allocations: 228.3 kB / 470.9 MB, free: 9.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1417, allocations: 0 / 470.9 MB, free: 9.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005181/0.1423, allocations: 256.9 kB / 471.1 MB, free: 9.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.1423, allocations: 4 kB / 471.1 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.1423, allocations: 4 kB / 471.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.908e-05/0.1423, allocations: 7.938 kB / 471.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005132/0.1429, allocations: 84.33 kB / 471.2 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00129/0.1442, allocations: 1.373 MB / 472.6 MB, free: 7.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001672/0.1443, allocations: 19.98 kB / 472.6 MB, free: 7.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.1444, allocations: 8 kB / 472.6 MB, free: 7.621 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001769/0.1446, allocations: 165.7 kB / 472.8 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.299e-05/0.1446, allocations: 27.62 kB / 472.8 MB, free: 7.422 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003248/0.145, allocations: 192.5 kB / 473 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.145, allocations: 4 kB / 473 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.794e-06/0.145, allocations: 0 / 473 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.029e-06/0.145, allocations: 0 / 473 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007906/0.1458, allocations: 0.5528 MB / 473.6 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1458, allocations: 0 / 473.6 MB, free: 6.613 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002257/0.146, allocations: 43.92 kB / 473.6 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.1461, allocations: 3.938 kB / 473.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.027e-05/0.1461, allocations: 12.03 kB / 473.6 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.1461, allocations: 0 / 473.6 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.1461, allocations: 0 / 473.6 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007879/0.1469, allocations: 497 kB / 474.1 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.388e-05/0.147, allocations: 104.8 kB / 474.2 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.755e-05/0.147, allocations: 15.94 kB / 474.2 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001981/0.1472, allocations: 0 / 474.2 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.828e-05/0.1473, allocations: 23.95 kB / 474.3 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.1473, allocations: 7.984 kB / 474.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002011/0.1475, allocations: 223.2 kB / 474.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1475, allocations: 0 / 474.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004118/0.1479, allocations: 56 kB / 474.5 MB, free: 5.609 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (rotor.phi,rotor.w,motor.i) * 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 (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001156/0.1481, allocations: 107.8 kB / 474.6 MB, free: 5.492 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004689/0.1485, allocations: 171.6 kB / 474.8 MB, free: 5.324 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1485, allocations: 0 / 474.8 MB, free: 5.324 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001074/0.1487, allocations: 72 kB / 474.9 MB, free: 5.258 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007387/0.1494, allocations: 91.88 kB / 475 MB, free: 5.172 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001537/0.151, allocations: 0.83 MB / 475.8 MB, free: 4.312 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005482/0.1515, allocations: 0.799 MB / 476.6 MB, free: 3.488 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002011/0.1517, allocations: 58.92 kB / 476.7 MB, free: 3.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.805e-05/0.1518, allocations: 23.44 kB / 476.7 MB, free: 3.406 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1518, allocations: 4 kB / 476.7 MB, free: 3.402 MB / 350.1 MB Notification: Performance of Templates: time 0.007897/0.1597, allocations: 3.2 MB / 479.9 MB, free: 248 kB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Machines.pipe 2>&1)