Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_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_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009779/0.0009779, allocations: 174.1 kB / 16.07 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.244/1.244, allocations: 205.4 MB / 222.2 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007248/0.0007247, allocations: 84.73 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1713/0.1713, allocations: 38.08 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003726/0.0003726, allocations: 12 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2306, allocations: 56.32 MB / 479.6 MB, free: 9.238 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.005812/0.2365, allocations: 5.646 MB / 485.3 MB, free: 5.508 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.003021/0.2395, allocations: 2.133 MB / 487.4 MB, free: 3.984 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006025/0.2402, allocations: 29.88 kB / 487.4 MB, free: 3.973 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006635/0.2408, allocations: 161.5 kB / 487.6 MB, free: 3.895 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001306/0.2422, allocations: 406.6 kB / 488 MB, free: 3.668 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007291/0.2429, allocations: 213.5 kB / 488.2 MB, free: 3.562 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001356/0.2443, allocations: 0.8853 MB / 489.1 MB, free: 3.195 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006057/0.2449, allocations: 406.5 kB / 489.5 MB, free: 3.043 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005578/0.2455, allocations: 284.8 kB / 489.8 MB, free: 2.926 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005383/0.246, allocations: 318.4 kB / 490.1 MB, free: 2.801 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.237e-05/0.2461, allocations: 30.06 kB / 490.1 MB, free: 2.797 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002715/0.2464, allocations: 64.19 kB / 490.2 MB, free: 2.789 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000181/0.2466, allocations: 152.8 kB / 490.3 MB, free: 2.73 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003391/0.2469, allocations: 282.7 kB / 490.6 MB, free: 2.555 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006864/0.2476, allocations: 0.5612 MB / 491.2 MB, free: 2.414 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2476, allocations: 1.953 kB / 491.2 MB, free: 2.414 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2477, allocations: 0 / 491.2 MB, free: 2.414 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.604e-05/0.2477, allocations: 0 / 491.2 MB, free: 2.414 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.001508/0.2492, allocations: 0.7948 MB / 491.9 MB, free: 1.82 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.2492, allocations: 18.48 kB / 492 MB, free: 1.812 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001553/0.2494, allocations: 62.62 kB / 492 MB, free: 1.781 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008347/0.2502, allocations: 0.4964 MB / 492.5 MB, free: 1.422 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.875e-05/0.2503, allocations: 29.62 kB / 492.6 MB, free: 1.406 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001129/0.2504, allocations: 50.27 kB / 492.6 MB, free: 1.387 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008023/0.2512, allocations: 0.5103 MB / 493.1 MB, free: 1.105 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.247e-05/0.2513, allocations: 1.312 kB / 493.1 MB, free: 1.105 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.477e-05/0.2513, allocations: 29.19 kB / 493.1 MB, free: 1.082 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7e-05/0.2514, allocations: 16.83 kB / 493.2 MB, free: 1.082 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005719/0.252, allocations: 330.1 kB / 493.5 MB, free: 0.9688 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002646/0.2546, allocations: 2.083 MB / 495.6 MB, free: 15.4 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004509/0.2551, allocations: 226.2 kB / 495.8 MB, free: 15.27 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.2553, allocations: 87.44 kB / 495.9 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.541e-05/0.2553, allocations: 6.312 kB / 495.9 MB, free: 15.21 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002948/0.2556, allocations: 167.5 kB / 496 MB, free: 15.1 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 2.235e-06/0.2556, allocations: 0 / 496 MB, free: 15.1 MB / 330.7 MB Notification: Performance of matching and sorting (n=25): time 0.001864/0.2575, allocations: 0.9207 MB / 497 MB, free: 14.46 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.474e-05/0.2576, allocations: 136.7 kB / 497.1 MB, free: 14.3 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006018/0.2582, allocations: 423.1 kB / 497.5 MB, free: 14.1 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.185e-05/0.2582, allocations: 31.77 kB / 497.5 MB, free: 14.07 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002048/0.2584, allocations: 292.1 kB / 497.8 MB, free: 13.83 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.315e-05/0.2585, allocations: 90.92 kB / 497.9 MB, free: 13.76 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.819e-05/0.2586, allocations: 13.09 kB / 497.9 MB, free: 13.75 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.2587, allocations: 363 kB / 498.3 MB, free: 13.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.2589, allocations: 83.31 kB / 498.4 MB, free: 13.38 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002534/0.2592, allocations: 216.8 kB / 498.6 MB, free: 13.18 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000431/0.2596, allocations: 319 kB / 498.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.2596, allocations: 0.875 kB / 498.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009771/0.2606, allocations: 438.8 kB / 499.3 MB, free: 12.73 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.2606, allocations: 7.578 kB / 499.3 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.2607, allocations: 8.188 kB / 499.3 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004216/0.2611, allocations: 101.6 kB / 499.4 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002641/0.2614, allocations: 68.84 kB / 499.5 MB, free: 12.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002044/0.2634, allocations: 1.69 MB / 0.4894 GB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003573/0.2638, allocations: 23.03 kB / 0.4895 GB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.749e-05/0.2639, allocations: 19.28 kB / 0.4895 GB, free: 11.19 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 (40): * Single equations (assignments): 39 * 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 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003698/0.2642, allocations: 217 kB / 0.4897 GB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.421e-05/0.2643, allocations: 44.38 kB / 0.4897 GB, free: 10.99 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006117/0.265, allocations: 282.8 kB / 0.49 GB, free: 10.85 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.265, allocations: 3 kB / 0.49 GB, free: 10.85 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.265, allocations: 2.125 kB / 0.49 GB, free: 10.85 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.265, allocations: 2.547 kB / 0.49 GB, free: 10.85 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001337/0.2663, allocations: 0.7685 MB / 0.4908 GB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.2664, allocations: 0 / 0.4908 GB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000269/0.2666, allocations: 54.81 kB / 0.4908 GB, free: 10.35 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002117/0.2669, allocations: 56.66 kB / 0.4909 GB, free: 10.33 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.072e-05/0.2669, allocations: 11.45 kB / 0.4909 GB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001236/0.2681, allocations: 1.433 MB / 0.4923 GB, free: 8.918 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.2682, allocations: 1.516 kB / 0.4923 GB, free: 8.918 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007902/0.269, allocations: 485.2 kB / 0.4927 GB, free: 8.582 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001975/0.2692, allocations: 134.8 kB / 0.4929 GB, free: 8.445 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.929e-05/0.2692, allocations: 7.625 kB / 0.4929 GB, free: 8.441 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002306/0.2695, allocations: 15.42 kB / 0.4929 GB, free: 8.434 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.908e-05/0.2696, allocations: 22.06 kB / 0.4929 GB, free: 8.422 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.2696, allocations: 13.11 kB / 0.4929 GB, free: 8.414 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003983/0.27, allocations: 292.9 kB / 0.4932 GB, free: 8.23 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.27, allocations: 4 kB / 0.4932 GB, free: 8.227 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006117/0.2706, allocations: 113.6 kB / 0.4933 GB, free: 8.211 MB / 330.7 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 (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.0008559/0.2715, allocations: 406.2 kB / 0.4937 GB, free: 7.918 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008701/0.2724, allocations: 393 kB / 0.4941 GB, free: 7.672 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.2724, allocations: 0 / 0.4941 GB, free: 7.672 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004018/0.2728, allocations: 242.2 kB / 0.4943 GB, free: 7.496 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008565/0.2737, allocations: 125.7 kB / 0.4944 GB, free: 7.434 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002496/0.2762, allocations: 1.52 MB / 0.4959 GB, free: 6.301 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006717/0.2769, allocations: 0.878 MB / 0.4968 GB, free: 5.512 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00017/0.2771, allocations: 34.22 kB / 0.4968 GB, free: 5.504 MB / 330.7 MB Notification: Performance of SimCode: time 1.383e-06/0.2771, allocations: 0 / 0.4968 GB, free: 5.504 MB / 330.7 MB Notification: Performance of Templates: time 0.01554/0.2926, allocations: 8.75 MB / 0.5053 GB, free: 15.59 MB / 346.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)