Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.00109/0.001091, 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.239/1.239, 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.001669/0.001669, allocations: 124.8 kB / 256.6 MB, free: 4.328 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1624/0.1624, allocations: 37.95 MB / 338.8 MB, free: 2.223 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 75.89 kB / 401.8 MB, free: 68.75 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0888/0.08997, allocations: 52.19 MB / 454 MB, free: 16.57 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.004996/0.09501, allocations: 5.422 MB / 459.4 MB, free: 11.12 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.09671, allocations: 1.718 MB / 461.1 MB, free: 9.395 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002228/0.09695, allocations: 27.81 kB / 461.2 MB, free: 9.367 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003082/0.09727, allocations: 99.41 kB / 461.3 MB, free: 9.27 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004546/0.09776, allocations: 234.8 kB / 461.5 MB, free: 9.039 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002323/0.098, allocations: 123.8 kB / 461.6 MB, free: 8.918 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005421/0.09855, allocations: 0.724 MB / 462.3 MB, free: 8.191 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003182/0.09888, allocations: 325.8 kB / 462.6 MB, free: 7.867 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002/0.09909, allocations: 207.2 kB / 462.8 MB, free: 7.664 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002531/0.09935, allocations: 243 kB / 463.1 MB, free: 7.426 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.318e-05/0.0994, allocations: 24 kB / 463.1 MB, free: 7.402 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.838e-05/0.09947, allocations: 28 kB / 463.1 MB, free: 7.375 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 9.072e-05/0.09956, allocations: 107.6 kB / 463.2 MB, free: 7.27 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001483/0.09972, allocations: 210.9 kB / 463.4 MB, free: 7.062 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002867/0.1, allocations: 498.3 kB / 463.9 MB, free: 6.574 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1, allocations: 7.938 kB / 463.9 MB, free: 6.566 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1, allocations: 0 / 463.9 MB, free: 6.566 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1, allocations: 0 / 463.9 MB, free: 6.566 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.0009883/0.101, allocations: 0.7069 MB / 464.6 MB, free: 5.812 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.1011, allocations: 12.03 kB / 464.7 MB, free: 5.801 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.182e-05/0.1012, allocations: 44.38 kB / 464.7 MB, free: 5.758 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004405/0.1016, allocations: 395.8 kB / 465.1 MB, free: 5.328 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.789e-05/0.1017, allocations: 62.69 kB / 465.2 MB, free: 5.262 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.409e-05/0.1018, allocations: 36 kB / 465.2 MB, free: 5.227 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004844/0.1023, allocations: 432.1 kB / 465.6 MB, free: 4.762 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.1023, allocations: 4 kB / 465.6 MB, free: 4.758 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.766e-05/0.1023, allocations: 16 kB / 465.6 MB, free: 4.742 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.1023, allocations: 8 kB / 465.6 MB, free: 4.734 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003875/0.1027, allocations: 270 kB / 465.9 MB, free: 4.473 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001537/0.1043, allocations: 1.841 MB / 467.7 MB, free: 2.512 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002479/0.1045, allocations: 183.5 kB / 467.9 MB, free: 2.305 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001144/0.1047, allocations: 78.62 kB / 468 MB, free: 2.219 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.319e-05/0.1047, allocations: 7.984 kB / 468 MB, free: 2.211 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.791e-05/0.1047, allocations: 46.48 kB / 468 MB, free: 2.156 MB / 314.7 MB Notification: Performance of pre-optimization done (n=18): time 1.382e-06/0.1047, allocations: 0 / 468 MB, free: 2.156 MB / 314.7 MB Notification: Performance of matching and sorting (n=20): time 0.001279/0.106, allocations: 0.9134 MB / 469 MB, free: 1.156 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.598e-05/0.1061, allocations: 106.8 kB / 469.1 MB, free: 1.027 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002228/0.1063, allocations: 312.5 kB / 469.4 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.1063, allocations: 25.7 kB / 469.4 MB, free: 0.6875 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.175e-05/0.1064, allocations: 239.6 kB / 469.6 MB, free: 460 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.976e-05/0.1065, allocations: 78.84 kB / 469.7 MB, free: 380 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.43e-05/0.1065, allocations: 65.77 kB / 469.8 MB, free: 308 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.916e-05/0.1066, allocations: 342.8 kB / 470.1 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.1068, allocations: 75.95 kB / 470.2 MB, free: 15.88 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002369/0.1071, allocations: 200 kB / 470.4 MB, free: 15.63 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000399/0.1075, allocations: 292 kB / 470.7 MB, free: 15.29 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.1075, allocations: 3.938 kB / 470.7 MB, free: 15.28 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005265/0.108, allocations: 332.6 kB / 471 MB, free: 14.95 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.108, allocations: 8 kB / 471 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.1081, allocations: 8.5 kB / 471 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.1081, allocations: 12 kB / 471 MB, free: 14.92 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002751/0.1084, allocations: 79.89 kB / 471.1 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.1084, allocations: 8 kB / 471.1 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001598/0.1085, allocations: 11.94 kB / 471.1 MB, free: 14.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.235e-05/0.1086, allocations: 23.92 kB / 471.1 MB, free: 14.8 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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001721/0.1088, allocations: 173.8 kB / 471.3 MB, free: 14.62 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.781e-05/0.1088, allocations: 35.56 kB / 471.3 MB, free: 14.58 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003833/0.1092, allocations: 209.2 kB / 471.5 MB, free: 14.37 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.563e-06/0.1092, allocations: 7.984 kB / 471.6 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1093, allocations: 0 / 471.6 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.1093, allocations: 4 kB / 471.6 MB, free: 14.36 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009346/0.1102, allocations: 0.6239 MB / 472.2 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.1102, allocations: 0 / 472.2 MB, free: 13.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002409/0.1105, allocations: 52 kB / 472.2 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.981e-06/0.1105, allocations: 4 kB / 472.2 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.198e-05/0.1105, allocations: 4 kB / 472.2 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.162e-06/0.1105, allocations: 11.88 kB / 472.3 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.1105, allocations: 0 / 472.3 MB, free: 13.61 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002325/0.1129, allocations: 1.92 MB / 474.2 MB, free: 11.54 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.188e-05/0.113, allocations: 100.7 kB / 474.3 MB, free: 11.42 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.451e-05/0.113, allocations: 7.938 kB / 474.3 MB, free: 11.41 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001682/0.1132, allocations: 4.047 kB / 474.3 MB, free: 11.41 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.893e-05/0.1132, allocations: 19.97 kB / 474.3 MB, free: 11.39 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.1133, allocations: 4.109 kB / 474.3 MB, free: 11.39 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000188/0.1135, allocations: 219 kB / 474.5 MB, free: 11.17 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1135, allocations: 4 kB / 474.5 MB, free: 11.17 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004965/0.114, allocations: 100 kB / 474.6 MB, free: 11.07 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.motor.phi_el,machine.motor.w_el) * 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): 20 * 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.000109/0.1141, allocations: 107.2 kB / 474.7 MB, free: 10.96 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003951/0.1145, allocations: 196.7 kB / 474.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.1145, allocations: 4.125 kB / 474.9 MB, free: 10.76 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001727/0.1147, allocations: 87.75 kB / 475 MB, free: 10.68 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006571/0.1153, allocations: 89.53 kB / 475.1 MB, free: 10.59 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.117, allocations: 1.229 MB / 476.3 MB, free: 9.305 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000381/0.1174, allocations: 0.8233 MB / 477.1 MB, free: 8.453 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002121/0.1176, allocations: 47.27 kB / 477.2 MB, free: 8.41 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.892e-05/0.1176, allocations: 27.44 kB / 477.2 MB, free: 8.383 MB / 330.7 MB Notification: Performance of SimCode: time 2.41e-07/0.1177, allocations: 0 / 477.2 MB, free: 8.383 MB / 330.7 MB Notification: Performance of Templates: time 0.006685/0.1243, allocations: 3.6 MB / 480.8 MB, free: 4.789 MB / 330.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)