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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001714/0.001714, allocations: 108.3 kB / 17.68 MB, free: 5.332 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.001843/0.001843, allocations: 192 kB / 18.62 MB, free: 4.41 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.381/1.381, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1798/0.1798, allocations: 37.98 MB / 309.8 MB, free: 5.977 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.001478/0.001478, allocations: 71.91 kB / 376.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2322/0.2337, allocations: 55.24 MB / 432 MB, free: 19.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.005624/0.2394, allocations: 5.699 MB / 437.7 MB, free: 13.79 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002371/0.2418, allocations: 2.081 MB / 439.8 MB, free: 11.7 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002714/0.2421, allocations: 19.88 kB / 439.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004987/0.2426, allocations: 170.8 kB / 440 MB, free: 11.51 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0007255/0.2433, allocations: 409.7 kB / 440.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004301/0.2438, allocations: 230 kB / 440.6 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006982/0.2445, allocations: 0.8447 MB / 441.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003995/0.2449, allocations: 0.4928 MB / 441.9 MB, free: 9.539 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002992/0.2452, allocations: 346.6 kB / 442.3 MB, free: 9.199 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003263/0.2455, allocations: 338.6 kB / 442.6 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.029e-05/0.2456, allocations: 55.98 kB / 442.7 MB, free: 8.812 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001545/0.2458, allocations: 99.98 kB / 442.8 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001344/0.2459, allocations: 191.4 kB / 442.9 MB, free: 8.527 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002138/0.2461, allocations: 302.5 kB / 443.2 MB, free: 8.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005439/0.2467, allocations: 0.7359 MB / 444 MB, free: 7.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2467, allocations: 4 kB / 444 MB, free: 7.488 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.2467, allocations: 0 / 444 MB, free: 7.488 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.2467, allocations: 3.938 kB / 444 MB, free: 7.484 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001363/0.2481, allocations: 0.8841 MB / 444.9 MB, free: 6.555 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.172e-05/0.2481, allocations: 19.88 kB / 444.9 MB, free: 6.535 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.024e-05/0.2482, allocations: 60.19 kB / 444.9 MB, free: 6.477 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007166/0.249, allocations: 0.5253 MB / 445.5 MB, free: 5.91 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.587e-05/0.249, allocations: 37 kB / 445.5 MB, free: 5.875 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.659e-05/0.2491, allocations: 47.98 kB / 445.6 MB, free: 5.828 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005939/0.2497, allocations: 0.5134 MB / 446.1 MB, free: 5.273 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.2497, allocations: 7.938 kB / 446.1 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.976e-05/0.2498, allocations: 23.98 kB / 446.1 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.569e-05/0.2498, allocations: 13 kB / 446.1 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004333/0.2503, allocations: 335.7 kB / 446.4 MB, free: 4.902 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001937/0.2522, allocations: 2.054 MB / 448.5 MB, free: 2.734 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003546/0.2526, allocations: 235.9 kB / 448.7 MB, free: 2.477 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.2527, allocations: 78.61 kB / 448.8 MB, free: 2.391 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.32e-05/0.2528, allocations: 7.984 kB / 448.8 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002103/0.253, allocations: 173.7 kB / 449 MB, free: 2.191 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.543e-06/0.253, allocations: 0 / 449 MB, free: 2.191 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.001492/0.2545, allocations: 0.9158 MB / 449.9 MB, free: 1.215 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.525e-05/0.2546, allocations: 140.5 kB / 450 MB, free: 1.047 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003678/0.2549, allocations: 430 kB / 450.5 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.196e-05/0.255, allocations: 37.64 kB / 450.5 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000138/0.2551, allocations: 291.7 kB / 450.8 MB, free: 292 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.957e-05/0.2552, allocations: 90.7 kB / 450.9 MB, free: 200 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.476e-05/0.2553, allocations: 74.12 kB / 450.9 MB, free: 116 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.2554, allocations: 358.7 kB / 451.3 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001569/0.2556, allocations: 84.83 kB / 451.4 MB, free: 15.67 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002597/0.2559, allocations: 221.5 kB / 451.6 MB, free: 15.4 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003987/0.2563, allocations: 325.2 kB / 451.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.2563, allocations: 4 kB / 451.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008159/0.2571, allocations: 441.6 kB / 452.3 MB, free: 14.58 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/0.2572, allocations: 8 kB / 452.3 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.2572, allocations: 4 kB / 452.4 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004187/0.2576, allocations: 92.77 kB / 452.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002595/0.2579, allocations: 76.12 kB / 452.5 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002072/0.2599, allocations: 1.833 MB / 454.3 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002577/0.2602, allocations: 23.92 kB / 454.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.669e-05/0.2603, allocations: 16 kB / 454.4 MB, free: 12.38 MB / 334.1 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 (40): * Single equations (assignments): 39 * 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.000218/0.2605, allocations: 209.8 kB / 454.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.247e-05/0.2606, allocations: 47.45 kB / 454.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.189e-05/0.2606, allocations: 47.88 kB / 454.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.2607, allocations: 4 kB / 454.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.2607, allocations: 4 kB / 454.7 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.2607, allocations: 3.984 kB / 454.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001137/0.2618, allocations: 0.7722 MB / 455.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.2618, allocations: 0 / 455.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002716/0.2621, allocations: 47.91 kB / 455.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002035/0.2623, allocations: 52.8 kB / 455.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.115e-05/0.2624, allocations: 7.938 kB / 455.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001284/0.2637, allocations: 1.547 MB / 457.1 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2637, allocations: 0 / 457.1 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007041/0.2644, allocations: 489.3 kB / 457.6 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/0.2645, allocations: 120.7 kB / 457.7 MB, free: 8.793 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.648e-05/0.2646, allocations: 11.98 kB / 457.7 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002201/0.2648, allocations: 12 kB / 457.7 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.273e-05/0.2649, allocations: 27.91 kB / 457.8 MB, free: 8.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.099e-05/0.2649, allocations: 11.98 kB / 457.8 MB, free: 8.73 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003132/0.2653, allocations: 295.1 kB / 458.1 MB, free: 8.445 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2653, allocations: 0 / 458.1 MB, free: 8.445 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004914/0.2658, allocations: 116 kB / 458.2 MB, free: 8.332 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,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 (22): * 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: 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.0009587/0.2667, allocations: 410.3 kB / 458.6 MB, free: 7.984 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007721/0.2675, allocations: 394.1 kB / 459 MB, free: 7.586 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.2675, allocations: 4 kB / 459 MB, free: 7.582 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003957/0.2679, allocations: 236.1 kB / 459.2 MB, free: 7.34 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00068/0.2686, allocations: 134.2 kB / 459.3 MB, free: 7.211 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001789/0.2704, allocations: 1.175 MB / 460.5 MB, free: 6 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004046/0.2708, allocations: 0.8777 MB / 461.4 MB, free: 5.098 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002059/0.2711, allocations: 72.22 kB / 461.5 MB, free: 5.027 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.652e-05/0.2711, allocations: 39.36 kB / 461.5 MB, free: 4.988 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2712, allocations: 0 / 461.5 MB, free: 4.988 MB / 334.1 MB Notification: Performance of Templates: time 0.01278/0.2839, allocations: 6.434 MB / 467.9 MB, free: 14.54 MB / 350.1 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 -s gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)