Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001157, allocations: 115 kB / 16.63 MB, free: 6.812 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.001268/0.001268, allocations: 186 kB / 17.55 MB, free: 5.934 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.348/1.348, allocations: 222.9 MB / 241.2 MB, free: 15.41 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.4 MB, free: 8.969 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 63.59 kB / 398.3 MB, free: 34.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09979/0.1011, allocations: 58.05 MB / 456.3 MB, free: 8.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006991/0.1081, allocations: 6.106 MB / 462.4 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002696/0.1108, allocations: 1.83 MB / 464.3 MB, free: 468 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003257/0.1112, allocations: 39.75 kB / 464.3 MB, free: 428 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003916/0.1116, allocations: 99.34 kB / 464.4 MB, free: 328 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007075/0.1123, allocations: 286.5 kB / 464.7 MB, free: 40 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003586/0.1127, allocations: 139.8 kB / 464.8 MB, free: 15.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007428/0.1134, allocations: 0.6966 MB / 465.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005543/0.114, allocations: 439.7 kB / 465.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003804/0.1144, allocations: 286.9 kB / 466.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003741/0.1148, allocations: 302.9 kB / 466.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.936e-05/0.1148, allocations: 44 kB / 466.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.521e-05/0.1149, allocations: 48 kB / 466.6 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00014/0.1151, allocations: 151.6 kB / 466.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002419/0.1153, allocations: 266.8 kB / 467 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005237/0.1158, allocations: 0.5879 MB / 467.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1159, allocations: 0 / 467.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1159, allocations: 0 / 467.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.1159, allocations: 0 / 467.6 MB, free: 13.1 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001303/0.1172, allocations: 0.7893 MB / 468.4 MB, free: 12.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.1172, allocations: 15.83 kB / 468.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.797e-05/0.1173, allocations: 56.28 kB / 468.5 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005985/0.1179, allocations: 432 kB / 468.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001152/0.1181, allocations: 70.61 kB / 469 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.884e-05/0.1182, allocations: 47.91 kB / 469 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008022/0.119, allocations: 0.4931 MB / 469.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.398e-05/0.119, allocations: 7.922 kB / 469.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.942e-05/0.119, allocations: 16 kB / 469.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.1191, allocations: 12 kB / 469.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006027/0.1197, allocations: 343.7 kB / 469.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002257/0.1219, allocations: 1.984 MB / 471.8 MB, free: 8.598 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004347/0.1224, allocations: 217.6 kB / 472.1 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001914/0.1226, allocations: 102.7 kB / 472.2 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.1226, allocations: 4 kB / 472.2 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.237e-05/0.1227, allocations: 34.56 kB / 472.2 MB, free: 8.203 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 2.945e-06/0.1227, allocations: 0 / 472.2 MB, free: 8.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.001731/0.1244, allocations: 0.8479 MB / 473 MB, free: 7.301 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.764e-05/0.1245, allocations: 102.8 kB / 473.1 MB, free: 7.176 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003627/0.1249, allocations: 333.6 kB / 473.5 MB, free: 6.844 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.1249, allocations: 25.7 kB / 473.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002054/0.1251, allocations: 279.8 kB / 473.8 MB, free: 6.535 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.849e-05/0.1252, allocations: 78.89 kB / 473.8 MB, free: 6.457 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.1253, allocations: 69.56 kB / 473.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001812/0.1255, allocations: 346.8 kB / 474.3 MB, free: 6.035 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002021/0.1257, allocations: 79.95 kB / 474.3 MB, free: 5.957 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003099/0.126, allocations: 221 kB / 474.5 MB, free: 5.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001259/0.1273, allocations: 0.5599 MB / 475.1 MB, free: 5.047 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1273, allocations: 0 / 475.1 MB, free: 5.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008736/0.1282, allocations: 409.4 kB / 475.5 MB, free: 4.637 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.1282, allocations: 8.594 kB / 475.5 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.1282, allocations: 8 kB / 475.5 MB, free: 4.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000338/0.1286, allocations: 80.78 kB / 475.6 MB, free: 4.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002326/0.1288, allocations: 67.91 kB / 475.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/0.1308, allocations: 1.939 MB / 477.6 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002539/0.1311, allocations: 12 kB / 477.6 MB, free: 2.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.668e-05/0.1311, allocations: 16 kB / 477.6 MB, free: 2.363 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * 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.0002835/0.1314, allocations: 197.8 kB / 477.8 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.73e-05/0.1315, allocations: 31.62 kB / 477.9 MB, free: 2.129 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.994e-05/0.1316, allocations: 43.23 kB / 477.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.688e-05/0.1316, allocations: 4 kB / 477.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.1316, allocations: 3.938 kB / 477.9 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.1316, allocations: 4 kB / 477.9 MB, free: 2.074 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001166/0.1328, allocations: 0.7726 MB / 478.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.1328, allocations: 4 kB / 478.7 MB, free: 1.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002504/0.133, allocations: 43.91 kB / 478.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.575e-05/0.1331, allocations: 24.8 kB / 478.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.1332, allocations: 7.984 kB / 478.8 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009487/0.1341, allocations: 1.387 MB / 480.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1341, allocations: 4.031 kB / 480.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007187/0.1349, allocations: 0.5054 MB / 480.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.135, allocations: 116.8 kB / 480.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.322e-05/0.135, allocations: 11.98 kB / 480.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002024/0.1353, allocations: 4 kB / 480.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.855e-05/0.1353, allocations: 19.97 kB / 480.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.627e-05/0.1353, allocations: 8 kB / 480.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002241/0.1356, allocations: 235.2 kB / 481 MB, free: 14.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1356, allocations: 0 / 481 MB, free: 14.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005052/0.1361, allocations: 84 kB / 481.1 MB, free: 14.6 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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 (21): * 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: 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,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.0001173/0.1362, allocations: 107.1 kB / 481.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007588/0.137, allocations: 381.6 kB / 481.6 MB, free: 14.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.137, allocations: 4 kB / 481.6 MB, free: 14.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000348/0.1374, allocations: 213.9 kB / 481.8 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007136/0.1381, allocations: 109.4 kB / 481.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001614/0.1397, allocations: 1.1 MB / 483 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003908/0.1401, allocations: 0.8465 MB / 483.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001962/0.1403, allocations: 51.25 kB / 483.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.158e-05/0.1404, allocations: 31.42 kB / 484 MB, free: 11.68 MB / 366.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1404, allocations: 3.938 kB / 484 MB, free: 11.68 MB / 366.1 MB Notification: Performance of Templates: time 0.008869/0.1493, allocations: 4.438 MB / 488.4 MB, free: 7.289 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)