Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001155/0.001155, allocations: 90.12 kB / 16.31 MB, free: 6.461 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.001514/0.001515, allocations: 183.9 kB / 17.21 MB, free: 6.336 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.369/1.369, allocations: 205.4 MB / 223.4 MB, free: 13.15 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1696/0.1696, allocations: 38.03 MB / 309.7 MB, free: 6.043 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.0004844/0.0004844, allocations: 15.98 kB / 376.5 MB, free: 3.102 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2517, allocations: 56.33 MB / 432.8 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.004552/0.2563, allocations: 5.39 MB / 438.2 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002295/0.2587, allocations: 1.77 MB / 440 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004941/0.2592, allocations: 39.75 kB / 440 MB, free: 11.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000446/0.2597, allocations: 127.1 kB / 440.2 MB, free: 11.47 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009221/0.2606, allocations: 346 kB / 440.5 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004937/0.2611, allocations: 159.8 kB / 440.7 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006871/0.2618, allocations: 0.7434 MB / 441.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003817/0.2622, allocations: 325.2 kB / 441.7 MB, free: 9.91 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002576/0.2624, allocations: 227 kB / 441.9 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003123/0.2628, allocations: 267 kB / 442.2 MB, free: 9.426 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.411e-05/0.2628, allocations: 24 kB / 442.2 MB, free: 9.402 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.102e-05/0.2629, allocations: 24 kB / 442.2 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.263, allocations: 123.6 kB / 442.4 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.2631, allocations: 121.5 kB / 442.5 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003319/0.2635, allocations: 462.8 kB / 442.9 MB, free: 8.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.2635, allocations: 8 kB / 442.9 MB, free: 8.672 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.2635, allocations: 0 / 442.9 MB, free: 8.672 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.2635, allocations: 0 / 442.9 MB, free: 8.672 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001063/0.2646, allocations: 0.7073 MB / 443.7 MB, free: 7.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.2646, allocations: 11.98 kB / 443.7 MB, free: 7.906 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.386e-05/0.2647, allocations: 59.3 kB / 443.7 MB, free: 7.848 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005112/0.2652, allocations: 418.9 kB / 444.1 MB, free: 7.395 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.639e-05/0.2653, allocations: 62.7 kB / 444.2 MB, free: 7.328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.618e-05/0.2654, allocations: 44 kB / 444.2 MB, free: 7.285 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006411/0.266, allocations: 0.5009 MB / 444.7 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.158e-05/0.2661, allocations: 11.91 kB / 444.7 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.511e-05/0.2661, allocations: 16 kB / 444.8 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.2661, allocations: 15.89 kB / 444.8 MB, free: 6.703 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005072/0.2666, allocations: 347.7 kB / 445.1 MB, free: 6.363 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001693/0.2683, allocations: 1.976 MB / 447.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003595/0.2687, allocations: 237.9 kB / 447.3 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001593/0.2689, allocations: 98.67 kB / 447.4 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.09e-05/0.2689, allocations: 3.984 kB / 447.4 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.2689, allocations: 38.56 kB / 447.5 MB, free: 3.859 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.313e-06/0.2689, allocations: 0 / 447.5 MB, free: 3.859 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001337/0.2703, allocations: 0.8587 MB / 448.3 MB, free: 2.945 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.567e-05/0.2703, allocations: 106.8 kB / 448.4 MB, free: 2.816 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002357/0.2706, allocations: 341.5 kB / 448.8 MB, free: 2.473 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.413e-05/0.2706, allocations: 25.7 kB / 448.8 MB, free: 2.441 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.2707, allocations: 267.7 kB / 449.1 MB, free: 2.176 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.352e-05/0.2708, allocations: 82.78 kB / 449.1 MB, free: 2.094 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.277e-05/0.2708, allocations: 8 kB / 449.1 MB, free: 2.086 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.019e-05/0.2708, allocations: 350.9 kB / 449.5 MB, free: 1.734 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001635/0.271, allocations: 79.95 kB / 449.6 MB, free: 1.656 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001961/0.2712, allocations: 225.2 kB / 449.8 MB, free: 1.375 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006192/0.2718, allocations: 312.9 kB / 450.1 MB, free: 1.051 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.2719, allocations: 4 kB / 450.1 MB, free: 1.047 MB / 318.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006637/0.2725, allocations: 419.2 kB / 450.5 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.2726, allocations: 8 kB / 450.5 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.2726, allocations: 4 kB / 450.5 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002745/0.2729, allocations: 81.11 kB / 450.6 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000214/0.2731, allocations: 67.84 kB / 450.7 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001703/0.2748, allocations: 1.752 MB / 452.4 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001824/0.275, allocations: 16.06 kB / 452.4 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.652e-05/0.275, allocations: 23.98 kB / 452.4 MB, free: 14.54 MB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * 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.0002074/0.2752, allocations: 189.7 kB / 452.6 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.725e-05/0.2753, allocations: 31.62 kB / 452.7 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.467e-05/0.2754, allocations: 43.31 kB / 452.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.2754, allocations: 3.953 kB / 452.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.122e-06/0.2754, allocations: 4 kB / 452.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.2754, allocations: 0 / 452.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001122/0.2765, allocations: 0.7882 MB / 453.5 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.2766, allocations: 8.031 kB / 453.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002291/0.2768, allocations: 47.91 kB / 453.6 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.149e-05/0.2769, allocations: 24.84 kB / 453.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.2769, allocations: 4 kB / 453.6 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008491/0.2778, allocations: 1.284 MB / 454.9 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2778, allocations: 0 / 454.9 MB, free: 11.9 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007607/0.2785, allocations: 0.5125 MB / 455.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.2787, allocations: 120.8 kB / 455.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.633e-05/0.2787, allocations: 7.984 kB / 455.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001798/0.2789, allocations: 8 kB / 455.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.514e-05/0.279, allocations: 31.94 kB / 455.5 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.279, allocations: 4 kB / 455.5 MB, free: 11.17 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002176/0.2792, allocations: 231.2 kB / 455.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2792, allocations: 0 / 455.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004803/0.2797, allocations: 88 kB / 455.9 MB, free: 10.86 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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): 19 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001242/0.2798, allocations: 103.2 kB / 456 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007047/0.2805, allocations: 374.6 kB / 456.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.2806, allocations: 0 / 456.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003212/0.2809, allocations: 219.5 kB / 456.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000651/0.2816, allocations: 93.45 kB / 456.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001667/0.2832, allocations: 1.181 MB / 457.8 MB, free: 8.836 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004072/0.2837, allocations: 0.8428 MB / 458.7 MB, free: 7.969 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001936/0.2839, allocations: 59.19 kB / 458.7 MB, free: 7.914 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.018e-05/0.2839, allocations: 27.44 kB / 458.7 MB, free: 7.887 MB / 334.1 MB Notification: Performance of SimCode: time 1.893e-06/0.2839, allocations: 0 / 458.7 MB, free: 7.887 MB / 334.1 MB Notification: Performance of Templates: time 0.007795/0.2917, allocations: 4.094 MB / 462.8 MB, free: 3.812 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile Environment - environmentSimulation: (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) Environment - environmentSimulation: