Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00136/0.00136, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001369/0.001369, allocations: 191.4 kB / 18.51 MB, free: 4.641 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 / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1932/0.1932, allocations: 38.02 MB / 330.4 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001306, allocations: 66.22 kB / 399.5 MB, free: 34.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09702/0.09834, allocations: 58.06 MB / 457.5 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007947/0.1063, allocations: 5.687 MB / 463.2 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003475/0.1098, allocations: 2.123 MB / 465.3 MB, free: 220 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004275/0.1103, allocations: 23.88 kB / 465.4 MB, free: 196 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006716/0.111, allocations: 166.8 kB / 465.5 MB, free: 28 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001295/0.1123, allocations: 433.6 kB / 465.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007179/0.1131, allocations: 251 kB / 466.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001196/0.1143, allocations: 0.837 MB / 467 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007016/0.115, allocations: 0.4967 MB / 467.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006503/0.1157, allocations: 342.7 kB / 467.9 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006837/0.1164, allocations: 342.6 kB / 468.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001864/0.1166, allocations: 52 kB / 468.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004059/0.117, allocations: 104 kB / 468.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003323/0.1173, allocations: 179.5 kB / 468.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004685/0.1178, allocations: 306.5 kB / 468.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008709/0.1187, allocations: 0.7281 MB / 469.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1187, allocations: 0 / 469.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1187, allocations: 3.938 kB / 469.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.841e-05/0.1188, allocations: 4 kB / 469.6 MB, free: 11.98 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001733/0.1205, allocations: 0.894 MB / 470.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.1206, allocations: 12.03 kB / 470.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001276/0.1207, allocations: 64.19 kB / 470.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000805/0.1215, allocations: 0.4904 MB / 471 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.048e-05/0.1215, allocations: 29 kB / 471 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.1217, allocations: 51.91 kB / 471.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007879/0.1225, allocations: 0.5212 MB / 471.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.1225, allocations: 0 / 471.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.749e-05/0.1225, allocations: 20 kB / 471.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.658e-05/0.1226, allocations: 17 kB / 471.6 MB, free: 9.758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005691/0.1232, allocations: 339.7 kB / 472 MB, free: 9.422 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002641/0.1259, allocations: 2.07 MB / 474 MB, free: 7.234 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000419/0.1263, allocations: 234.7 kB / 474.3 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001354/0.1264, allocations: 82.67 kB / 474.4 MB, free: 6.891 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.698e-05/0.1265, allocations: 4 kB / 474.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002434/0.1267, allocations: 172.8 kB / 474.5 MB, free: 6.699 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.954e-06/0.1267, allocations: 0 / 474.5 MB, free: 6.699 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.00173/0.1285, allocations: 0.9142 MB / 475.4 MB, free: 5.727 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.905e-05/0.1286, allocations: 136.5 kB / 475.6 MB, free: 5.562 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004959/0.1291, allocations: 429.8 kB / 476 MB, free: 5.133 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.944e-05/0.1291, allocations: 33.7 kB / 476 MB, free: 5.094 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002004/0.1293, allocations: 291.6 kB / 476.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.631e-05/0.1294, allocations: 94.73 kB / 476.4 MB, free: 4.711 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.1295, allocations: 74.11 kB / 476.5 MB, free: 4.633 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.1297, allocations: 362.7 kB / 476.8 MB, free: 4.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001598/0.1298, allocations: 84.83 kB / 476.9 MB, free: 4.188 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002426/0.1301, allocations: 225.8 kB / 477.1 MB, free: 3.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004207/0.1305, allocations: 321.7 kB / 477.5 MB, free: 3.531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1305, allocations: 0 / 477.5 MB, free: 3.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00087/0.1314, allocations: 441.8 kB / 477.9 MB, free: 3.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.1314, allocations: 8 kB / 477.9 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.1315, allocations: 8.031 kB / 477.9 MB, free: 3.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004153/0.1319, allocations: 96.77 kB / 478 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002495/0.1321, allocations: 71.91 kB / 478.1 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00216/0.1343, allocations: 1.833 MB / 479.9 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002818/0.1346, allocations: 19.98 kB / 479.9 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.989e-05/0.1346, allocations: 20.06 kB / 479.9 MB, free: 0.8867 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: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002533/0.1349, allocations: 208.7 kB / 480.1 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.91e-05/0.135, allocations: 47.38 kB / 480.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005626/0.1356, allocations: 280.5 kB / 480.5 MB, free: 356 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.1356, allocations: 4 kB / 480.5 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.1356, allocations: 0 / 480.5 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.1356, allocations: 0 / 480.5 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.1368, allocations: 0.7839 MB / 481.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.1368, allocations: 0 / 481.2 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000266/0.1371, allocations: 51.84 kB / 481.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00021/0.1373, allocations: 48.81 kB / 481.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.631e-05/0.1373, allocations: 11.98 kB / 481.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001358/0.1387, allocations: 1.539 MB / 482.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1387, allocations: 0 / 482.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007323/0.1395, allocations: 486.5 kB / 483.4 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001478/0.1396, allocations: 132.6 kB / 483.5 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.057e-05/0.1397, allocations: 16.06 kB / 483.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002206/0.1399, allocations: 15.98 kB / 483.5 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.962e-05/0.14, allocations: 19.97 kB / 483.6 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.675e-05/0.14, allocations: 4 kB / 483.6 MB, free: 13.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000344/0.1404, allocations: 307.1 kB / 483.9 MB, free: 12.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1404, allocations: 0 / 483.9 MB, free: 12.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005352/0.1409, allocations: 112 kB / 484 MB, free: 12.6 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008936/0.1418, allocations: 404.4 kB / 484.4 MB, free: 12.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000862/0.1427, allocations: 406.7 kB / 484.8 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1427, allocations: 0 / 484.8 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003793/0.1431, allocations: 249.9 kB / 485 MB, free: 11.69 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007107/0.1438, allocations: 130.6 kB / 485.1 MB, free: 11.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002098/0.1459, allocations: 1.234 MB / 486.4 MB, free: 10.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005132/0.1465, allocations: 0.8777 MB / 487.2 MB, free: 9.383 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.1466, allocations: 35.44 kB / 487.3 MB, free: 9.348 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1466, allocations: 0 / 487.3 MB, free: 9.348 MB / 366.1 MB Notification: Performance of Templates: time 0.01248/0.1591, allocations: 8.81 MB / 496.1 MB, free: 0.5625 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)