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/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 96.89 kB / 16.3 MB, free: 5.562 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.001324/0.001324, allocations: 184.8 kB / 17.2 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.589/1.589, allocations: 205.4 MB / 223.3 MB, free: 13.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1623/0.1623, allocations: 38.03 MB / 309.7 MB, free: 6.141 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005235/0.0005237, allocations: 15.98 kB / 376.5 MB, free: 3.219 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2323, allocations: 56.33 MB / 432.8 MB, free: 18.87 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.004139/0.2365, allocations: 4.937 MB / 437.7 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002243/0.2387, allocations: 1.993 MB / 439.7 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000272/0.239, allocations: 27.81 kB / 439.8 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000331/0.2394, allocations: 127.3 kB / 439.9 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006144/0.24, allocations: 342.8 kB / 440.2 MB, free: 11.42 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004077/0.2404, allocations: 190.6 kB / 440.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004776/0.2409, allocations: 431.1 kB / 440.8 MB, free: 10.81 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003101/0.2412, allocations: 305.2 kB / 441.1 MB, free: 10.51 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002778/0.2415, allocations: 231 kB / 441.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002257/0.2417, allocations: 219.1 kB / 441.6 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.968e-05/0.2418, allocations: 24 kB / 441.6 MB, free: 10.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001316/0.2419, allocations: 51.92 kB / 441.6 MB, free: 9.996 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.93e-05/0.242, allocations: 115.6 kB / 441.7 MB, free: 9.883 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.784e-05/0.2421, allocations: 117.5 kB / 441.9 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003387/0.2425, allocations: 0.4948 MB / 442.4 MB, free: 9.266 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.2425, allocations: 0 / 442.4 MB, free: 9.266 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2425, allocations: 0 / 442.4 MB, free: 9.266 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.094e-06/0.2425, allocations: 0 / 442.4 MB, free: 9.266 MB / 318.1 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.001103/0.2436, allocations: 0.7532 MB / 443.1 MB, free: 8.461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.2436, allocations: 12.03 kB / 443.1 MB, free: 8.449 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.661e-05/0.2437, allocations: 55.34 kB / 443.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006073/0.2443, allocations: 449.8 kB / 443.6 MB, free: 7.914 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/0.2444, allocations: 32.94 kB / 443.6 MB, free: 7.883 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.567e-05/0.2444, allocations: 39.91 kB / 443.7 MB, free: 7.844 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005091/0.245, allocations: 457.1 kB / 444.1 MB, free: 7.352 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.245, allocations: 0 / 444.1 MB, free: 7.352 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.703e-05/0.245, allocations: 23.95 kB / 444.2 MB, free: 7.328 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.138e-06/0.245, allocations: 8 kB / 444.2 MB, free: 7.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003555/0.2454, allocations: 274.3 kB / 444.4 MB, free: 7.051 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001653/0.2471, allocations: 1.87 MB / 446.3 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004072/0.2475, allocations: 244.2 kB / 446.5 MB, free: 4.805 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.2475, allocations: 4.312 kB / 446.5 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002286/0.2478, allocations: 174.2 kB / 446.7 MB, free: 4.609 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.634e-06/0.2478, allocations: 4 kB / 446.7 MB, free: 4.605 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.001421/0.2492, allocations: 0.906 MB / 447.6 MB, free: 3.641 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/0.2493, allocations: 136.5 kB / 447.8 MB, free: 3.477 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003481/0.2496, allocations: 397.9 kB / 448.1 MB, free: 3.086 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.2497, allocations: 29.7 kB / 448.2 MB, free: 3.051 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001255/0.2498, allocations: 267.6 kB / 448.4 MB, free: 2.781 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.696e-05/0.2499, allocations: 90.66 kB / 448.5 MB, free: 2.691 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.637e-05/0.2499, allocations: 8 kB / 448.5 MB, free: 2.684 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.102e-05/0.25, allocations: 362.7 kB / 448.9 MB, free: 2.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.2501, allocations: 83.95 kB / 449 MB, free: 2.238 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001697/0.2503, allocations: 212.2 kB / 449.2 MB, free: 1.973 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001569/0.2504, allocations: 115.9 kB / 449.3 MB, free: 1.859 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.2505, allocations: 4 kB / 449.3 MB, free: 1.855 MB / 318.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0006424/0.2511, allocations: 421.5 kB / 449.7 MB, free: 1.434 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.2511, allocations: 8 kB / 449.7 MB, free: 1.426 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2511, allocations: 4 kB / 449.7 MB, free: 1.422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003595/0.2515, allocations: 97.16 kB / 449.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002014/0.2517, allocations: 63.91 kB / 449.9 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001981/0.2537, allocations: 1.843 MB / 451.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002631/0.254, allocations: 23.98 kB / 451.7 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.15e-05/0.254, allocations: 19.94 kB / 451.8 MB, free: 15.24 MB / 334.1 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 (37): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002516/0.2543, allocations: 197.6 kB / 452 MB, free: 15.04 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.104e-05/0.2544, allocations: 39.53 kB / 452 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006278/0.255, allocations: 294 kB / 452.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.255, allocations: 4 kB / 452.3 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.255, allocations: 3.953 kB / 452.3 MB, free: 14.69 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.2551, allocations: 4 kB / 452.3 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001169/0.2562, allocations: 0.7647 MB / 453.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.2562, allocations: 0 / 453.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002294/0.2565, allocations: 59.91 kB / 453.1 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001983/0.2567, allocations: 52.8 kB / 453.2 MB, free: 13.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.2567, allocations: 4 kB / 453.2 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001216/0.2579, allocations: 1.448 MB / 454.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.258, allocations: 0 / 454.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007152/0.2587, allocations: 0.5128 MB / 455.1 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.2588, allocations: 136.6 kB / 455.3 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.817e-05/0.2589, allocations: 7.953 kB / 455.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002099/0.2591, allocations: 19.98 kB / 455.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.278e-05/0.2592, allocations: 19.97 kB / 455.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.2592, allocations: 12 kB / 455.3 MB, free: 11.4 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000308/0.2595, allocations: 279.1 kB / 455.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2595, allocations: 3.938 kB / 455.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004788/0.26, allocations: 108 kB / 455.7 MB, free: 11.02 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,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 (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008623/0.2609, allocations: 401.2 kB / 456.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007986/0.2617, allocations: 395.2 kB / 456.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.2617, allocations: 0 / 456.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003768/0.2621, allocations: 242.5 kB / 456.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005529/0.2627, allocations: 118.2 kB / 456.8 MB, free: 9.922 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001815/0.2645, allocations: 1.358 MB / 458.2 MB, free: 8.531 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.2649, allocations: 0.8697 MB / 459.1 MB, free: 7.637 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002173/0.2651, allocations: 67.36 kB / 459.1 MB, free: 7.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.349e-05/0.2652, allocations: 31.42 kB / 459.2 MB, free: 7.539 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2652, allocations: 0 / 459.2 MB, free: 7.539 MB / 334.1 MB Notification: Performance of Templates: time 0.0102/0.2754, allocations: 5.658 MB / 464.8 MB, free: 1.879 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: