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/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_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/Complex 3.2.2+maint.om/package.mo): time 0.001125/0.001125, allocations: 191.9 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.233/1.233, allocations: 194.2 MB / 212.2 MB, free: 2.363 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.001723/0.001723, allocations: 128.3 kB / 256.6 MB, free: 4.324 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.94 MB / 338.8 MB, free: 2.227 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 63.91 kB / 401.8 MB, free: 68.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08155/0.08271, allocations: 52.19 MB / 454 MB, free: 16.57 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.006207/0.08896, allocations: 6.283 MB / 460.3 MB, free: 10.25 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003006/0.092, allocations: 2.237 MB / 462.5 MB, free: 8.004 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000785/0.09282, allocations: 27.81 kB / 462.5 MB, free: 7.977 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006977/0.09354, allocations: 143.2 kB / 462.7 MB, free: 7.836 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001185/0.09481, allocations: 366.2 kB / 463 MB, free: 7.477 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005505/0.09537, allocations: 175.8 kB / 463.2 MB, free: 7.305 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001538/0.09692, allocations: 1.063 MB / 464.3 MB, free: 6.238 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006399/0.09759, allocations: 415 kB / 464.7 MB, free: 5.828 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006692/0.09827, allocations: 310.7 kB / 465 MB, free: 5.523 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005755/0.09886, allocations: 342.6 kB / 465.3 MB, free: 5.188 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001003/0.09897, allocations: 40 kB / 465.4 MB, free: 5.148 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000249/0.09923, allocations: 75.92 kB / 465.4 MB, free: 5.074 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001673/0.0994, allocations: 163.5 kB / 465.6 MB, free: 4.914 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003413/0.09975, allocations: 278.5 kB / 465.9 MB, free: 4.641 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006334/0.1004, allocations: 0.7125 MB / 466.6 MB, free: 3.926 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1004, allocations: 0 / 466.6 MB, free: 3.926 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1004, allocations: 0 / 466.6 MB, free: 3.926 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.155e-05/0.1004, allocations: 0 / 466.6 MB, free: 3.926 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001706/0.1022, allocations: 0.9076 MB / 467.5 MB, free: 2.961 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.1022, allocations: 12.03 kB / 467.5 MB, free: 2.949 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001093/0.1023, allocations: 64.17 kB / 467.6 MB, free: 2.887 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007157/0.103, allocations: 0.4979 MB / 468.1 MB, free: 2.348 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.936e-05/0.1031, allocations: 33 kB / 468.1 MB, free: 2.312 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.691e-05/0.1032, allocations: 51.91 kB / 468.1 MB, free: 2.262 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00059/0.1038, allocations: 0.5173 MB / 468.7 MB, free: 1.703 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.1038, allocations: 0 / 468.7 MB, free: 1.703 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.782e-05/0.1039, allocations: 27.94 kB / 468.7 MB, free: 1.676 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.419e-05/0.1039, allocations: 17 kB / 468.7 MB, free: 1.66 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004257/0.1044, allocations: 335.7 kB / 469 MB, free: 1.332 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002047/0.1064, allocations: 2.074 MB / 471.1 MB, free: 15.14 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004092/0.1068, allocations: 235.7 kB / 471.3 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001302/0.107, allocations: 82.55 kB / 471.4 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.167e-05/0.107, allocations: 4 kB / 471.4 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000268/0.1073, allocations: 169.8 kB / 471.6 MB, free: 14.61 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.392e-06/0.1073, allocations: 0 / 471.6 MB, free: 14.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=26): time 0.001814/0.1091, allocations: 1.137 MB / 472.7 MB, free: 13.38 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.943e-05/0.1092, allocations: 144.5 kB / 472.9 MB, free: 13.2 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004027/0.1096, allocations: 417.8 kB / 473.3 MB, free: 12.79 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.067e-05/0.1097, allocations: 33.7 kB / 473.3 MB, free: 12.75 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.1098, allocations: 287.6 kB / 473.6 MB, free: 12.46 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.426e-05/0.1099, allocations: 94.88 kB / 473.7 MB, free: 12.37 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.11, allocations: 78.12 kB / 473.7 MB, free: 12.29 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1102, allocations: 354.8 kB / 474.1 MB, free: 11.93 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.1103, allocations: 96.83 kB / 474.2 MB, free: 11.84 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002288/0.1106, allocations: 225.5 kB / 474.4 MB, free: 11.56 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003996/0.111, allocations: 358.7 kB / 474.8 MB, free: 11.14 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.111, allocations: 0 / 474.8 MB, free: 11.14 MB / 330.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007966/0.1118, allocations: 483.1 kB / 475.2 MB, free: 10.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.495e-05/0.1118, allocations: 33.7 kB / 475.3 MB, free: 10.62 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.1118, allocations: 4 kB / 475.3 MB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003806/0.1122, allocations: 97.23 kB / 475.4 MB, free: 10.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002422/0.1125, allocations: 71.91 kB / 475.4 MB, free: 10.45 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001937/0.1144, allocations: 1.707 MB / 477.1 MB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002696/0.1147, allocations: 27.84 kB / 477.2 MB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.088e-05/0.1148, allocations: 20.05 kB / 477.2 MB, free: 8.555 MB / 330.7 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 (42): * Single equations (assignments): 40 * 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 {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.000269/0.115, allocations: 206.1 kB / 477.4 MB, free: 8.344 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.593e-05/0.1151, allocations: 43.53 kB / 477.4 MB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005733/0.1157, allocations: 294 kB / 477.7 MB, free: 8.004 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.1157, allocations: 4 kB / 477.7 MB, free: 8 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.1157, allocations: 0 / 477.7 MB, free: 8 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.1157, allocations: 8 kB / 477.7 MB, free: 7.992 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001179/0.1169, allocations: 0.7878 MB / 478.5 MB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.1169, allocations: 0 / 478.5 MB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002651/0.1172, allocations: 55.84 kB / 478.6 MB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002003/0.1174, allocations: 56.75 kB / 478.6 MB, free: 7.031 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.339e-05/0.1174, allocations: 4 kB / 478.6 MB, free: 7.027 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001256/0.1187, allocations: 1.437 MB / 480.1 MB, free: 5.457 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.1187, allocations: 0 / 480.1 MB, free: 5.457 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006308/0.125, allocations: 4.26 MB / 484.3 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001503/0.1252, allocations: 136.6 kB / 484.5 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.392e-05/0.1253, allocations: 4 kB / 484.5 MB, free: 0.7383 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/0.1255, allocations: 11.98 kB / 484.5 MB, free: 0.7266 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.662e-05/0.1256, allocations: 23.97 kB / 484.5 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.1256, allocations: 4.141 kB / 484.5 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003365/0.1259, allocations: 299.1 kB / 484.8 MB, free: 416 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1259, allocations: 0 / 484.8 MB, free: 416 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006886/0.1266, allocations: 164.1 kB / 485 MB, free: 252 kB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.motor.phi_el,dcm_par.motor.w_el,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 (23): * Single equations (assignments): 21 * 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.0008868/0.1275, allocations: 381.6 kB / 485.3 MB, free: 15.89 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008173/0.1284, allocations: 449.8 kB / 485.8 MB, free: 15.42 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1284, allocations: 0 / 485.8 MB, free: 15.42 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003652/0.1288, allocations: 243.5 kB / 486 MB, free: 15.17 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006534/0.1294, allocations: 114.5 kB / 486.1 MB, free: 15.06 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002414/0.1318, allocations: 1.753 MB / 487.9 MB, free: 13.25 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004868/0.1323, allocations: 0.8815 MB / 488.8 MB, free: 12.34 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002968/0.1327, allocations: 72.22 kB / 488.8 MB, free: 12.27 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.799e-05/0.1328, allocations: 31.44 kB / 488.9 MB, free: 12.24 MB / 346.7 MB Notification: Performance of SimCode: time 3.11e-07/0.1328, allocations: 4 kB / 488.9 MB, free: 12.23 MB / 346.7 MB Notification: Performance of Templates: time 0.01301/0.1458, allocations: 7.179 MB / 496 MB, free: 5.043 MB / 346.7 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)