Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001214/0.001214, allocations: 189.5 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.196/1.196, allocations: 194.2 MB / 212.2 MB, free: 2.367 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001781/0.001781, allocations: 126.2 kB / 256.6 MB, free: 4.289 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1628/0.1628, allocations: 37.95 MB / 338.8 MB, free: 2.207 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 71.89 kB / 401.8 MB, free: 68.74 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09611/0.0973, allocations: 52.18 MB / 454 MB, free: 16.56 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006144/0.1035, allocations: 5.76 MB / 459.7 MB, free: 10.77 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002312/0.1058, allocations: 2.093 MB / 461.8 MB, free: 8.668 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002978/0.1062, allocations: 31.81 kB / 461.9 MB, free: 8.637 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004775/0.1066, allocations: 119.3 kB / 462 MB, free: 8.52 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006058/0.1073, allocations: 310.4 kB / 462.3 MB, free: 8.215 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003059/0.1076, allocations: 147.8 kB / 462.4 MB, free: 8.07 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006806/0.1083, allocations: 0.8332 MB / 463.3 MB, free: 7.234 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003356/0.1086, allocations: 357.6 kB / 463.6 MB, free: 6.879 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000286/0.1089, allocations: 254.9 kB / 463.9 MB, free: 6.629 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002932/0.1092, allocations: 286.8 kB / 464.1 MB, free: 6.348 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.97e-05/0.1093, allocations: 32 kB / 464.2 MB, free: 6.316 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001443/0.1095, allocations: 79.95 kB / 464.3 MB, free: 6.238 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.1096, allocations: 127.6 kB / 464.4 MB, free: 6.113 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001856/0.1098, allocations: 254.6 kB / 464.6 MB, free: 5.863 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004241/0.1102, allocations: 0.6152 MB / 465.2 MB, free: 5.246 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1102, allocations: 3.984 kB / 465.3 MB, free: 5.242 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1102, allocations: 0 / 465.3 MB, free: 5.242 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.593e-06/0.1102, allocations: 3.938 kB / 465.3 MB, free: 5.238 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001317/0.1115, allocations: 0.8602 MB / 466.1 MB, free: 4.324 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.1116, allocations: 8.031 kB / 466.1 MB, free: 4.316 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.903e-05/0.1117, allocations: 56.28 kB / 466.2 MB, free: 4.262 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005876/0.1123, allocations: 470 kB / 466.6 MB, free: 3.762 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.374e-05/0.1123, allocations: 29 kB / 466.7 MB, free: 3.73 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.662e-05/0.1124, allocations: 36 kB / 466.7 MB, free: 3.695 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005277/0.1129, allocations: 457.1 kB / 467.1 MB, free: 3.211 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.967e-05/0.1129, allocations: 7.938 kB / 467.2 MB, free: 3.203 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.255e-05/0.113, allocations: 16 kB / 467.2 MB, free: 3.188 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.896e-06/0.113, allocations: 8 kB / 467.2 MB, free: 3.18 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003756/0.1134, allocations: 278.3 kB / 467.4 MB, free: 2.91 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001629/0.115, allocations: 1.866 MB / 469.3 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000417/0.1154, allocations: 247.7 kB / 469.6 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001102/0.1156, allocations: 87.05 kB / 469.6 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.726e-05/0.1156, allocations: 7.938 kB / 469.6 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002193/0.1158, allocations: 178 kB / 469.8 MB, free: 376 kB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 1.542e-06/0.1159, allocations: 0 / 469.8 MB, free: 376 kB / 314.7 MB Notification: Performance of matching and sorting (n=27): time 0.00186/0.1177, allocations: 1.142 MB / 471 MB, free: 15.14 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.337e-05/0.1178, allocations: 140.8 kB / 471.1 MB, free: 14.97 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000442/0.1183, allocations: 393.5 kB / 471.5 MB, free: 14.58 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.98e-05/0.1183, allocations: 37.64 kB / 471.5 MB, free: 14.54 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001986/0.1185, allocations: 251.7 kB / 471.8 MB, free: 14.28 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.084e-05/0.1186, allocations: 106.5 kB / 471.9 MB, free: 14.17 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.1187, allocations: 66.08 kB / 471.9 MB, free: 14.1 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.1189, allocations: 358.8 kB / 472.3 MB, free: 13.74 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.119, allocations: 84.7 kB / 472.4 MB, free: 13.66 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000253/0.1193, allocations: 225.9 kB / 472.6 MB, free: 13.38 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004105/0.1197, allocations: 356.9 kB / 472.9 MB, free: 12.97 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1197, allocations: 0 / 472.9 MB, free: 12.97 MB / 330.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008185/0.1206, allocations: 471.1 kB / 473.4 MB, free: 12.49 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.1206, allocations: 29.7 kB / 473.4 MB, free: 12.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.1206, allocations: 11.94 kB / 473.4 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004086/0.121, allocations: 97.2 kB / 473.5 MB, free: 12.35 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/0.1213, allocations: 63.91 kB / 473.6 MB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002313/0.1236, allocations: 1.826 MB / 475.4 MB, free: 10.33 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002344/0.1238, allocations: 24.05 kB / 475.4 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.94e-05/0.1239, allocations: 16 kB / 475.5 MB, free: 10.29 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 1 * 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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002303/0.1241, allocations: 197.7 kB / 475.7 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.693e-05/0.1242, allocations: 43.44 kB / 475.7 MB, free: 10.04 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005761/0.1248, allocations: 304.2 kB / 476 MB, free: 9.738 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.1248, allocations: 8 kB / 476 MB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.1248, allocations: 0 / 476 MB, free: 9.73 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.1248, allocations: 3.984 kB / 476 MB, free: 9.727 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009747/0.1258, allocations: 0.7723 MB / 476.8 MB, free: 8.895 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1258, allocations: 0 / 476.8 MB, free: 8.895 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.126, allocations: 55.91 kB / 476.8 MB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001891/0.1262, allocations: 48.81 kB / 476.9 MB, free: 8.789 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.322e-05/0.1263, allocations: 11.98 kB / 476.9 MB, free: 8.777 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/0.1275, allocations: 1.433 MB / 478.3 MB, free: 7.215 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1275, allocations: 4.031 kB / 478.3 MB, free: 7.211 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005567/0.1331, allocations: 4.317 MB / 482.6 MB, free: 2.59 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/0.1333, allocations: 132.7 kB / 482.8 MB, free: 2.441 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.62e-05/0.1333, allocations: 15.92 kB / 482.8 MB, free: 2.426 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.1335, allocations: 12 kB / 482.8 MB, free: 2.414 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.268e-05/0.1336, allocations: 19.97 kB / 482.8 MB, free: 2.395 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/0.1336, allocations: 11.98 kB / 482.8 MB, free: 2.383 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003039/0.134, allocations: 271.2 kB / 483.1 MB, free: 2.117 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.134, allocations: 4.062 kB / 483.1 MB, free: 2.113 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007209/0.1347, allocations: 156 kB / 483.3 MB, free: 1.961 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.motor.phi_el,dcm_ser.motor.w_el,dcm_ser.motor.i,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 (25): * Single equations (assignments): 23 * 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.000773/0.1355, allocations: 368.3 kB / 483.6 MB, free: 1.621 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008812/0.1364, allocations: 462.5 kB / 484.1 MB, free: 1.145 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.1364, allocations: 8.125 kB / 484.1 MB, free: 1.137 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003688/0.1368, allocations: 254.4 kB / 484.3 MB, free: 0.875 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006524/0.1374, allocations: 121.5 kB / 484.4 MB, free: 0.7539 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002169/0.1396, allocations: 1.624 MB / 486.1 MB, free: 15.07 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.14, allocations: 0.8663 MB / 486.9 MB, free: 14.18 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000259/0.1403, allocations: 63.31 kB / 487 MB, free: 14.11 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.232e-05/0.1404, allocations: 39.42 kB / 487 MB, free: 14.07 MB / 346.7 MB Notification: Performance of SimCode: time 2.21e-07/0.1404, allocations: 0 / 487 MB, free: 14.07 MB / 346.7 MB Notification: Performance of Templates: time 0.01291/0.1533, allocations: 6.953 MB / 494 MB, free: 7.109 MB / 346.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)