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.001566/0.001566, allocations: 114.5 kB / 17.69 MB, free: 5.312 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.003009/0.003008, allocations: 191 kB / 18.63 MB, free: 4.379 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.585/1.585, allocations: 205.1 MB / 224.5 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.186/0.186, allocations: 37.98 MB / 309.8 MB, free: 5.988 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.002119/0.00212, allocations: 67.84 kB / 376.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3307/0.3329, allocations: 55.25 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006044/0.339, allocations: 5.25 MB / 437.3 MB, free: 14.23 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002385/0.3414, allocations: 1.613 MB / 438.9 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003141/0.3417, allocations: 19.88 kB / 438.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004088/0.3422, allocations: 123 kB / 439 MB, free: 12.46 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007708/0.343, allocations: 318.1 kB / 439.3 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003847/0.3434, allocations: 155.7 kB / 439.5 MB, free: 12 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007032/0.3441, allocations: 0.6966 MB / 440.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004665/0.3446, allocations: 441.6 kB / 440.6 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002801/0.3449, allocations: 282.9 kB / 440.9 MB, free: 10.59 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003357/0.3452, allocations: 290.9 kB / 441.2 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.533e-05/0.3453, allocations: 51.94 kB / 441.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.599e-05/0.3453, allocations: 44 kB / 441.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001337/0.3455, allocations: 155.6 kB / 441.4 MB, free: 10.06 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002206/0.3457, allocations: 266.8 kB / 441.7 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005265/0.3462, allocations: 0.5956 MB / 442.3 MB, free: 9.203 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3463, allocations: 4 kB / 442.3 MB, free: 9.199 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3463, allocations: 0 / 442.3 MB, free: 9.199 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.3463, allocations: 0 / 442.3 MB, free: 9.199 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.00138/0.3477, allocations: 0.7814 MB / 443.1 MB, free: 8.367 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.3477, allocations: 23.83 kB / 443.1 MB, free: 8.344 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.479e-05/0.3478, allocations: 52.36 kB / 443.1 MB, free: 8.293 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006753/0.3485, allocations: 455.9 kB / 443.6 MB, free: 7.812 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.377e-05/0.3486, allocations: 62.64 kB / 443.7 MB, free: 7.742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.734e-05/0.3487, allocations: 44 kB / 443.7 MB, free: 7.699 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000671/0.3494, allocations: 0.5009 MB / 444.2 MB, free: 7.164 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.21e-05/0.3494, allocations: 3.938 kB / 444.2 MB, free: 7.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.333e-05/0.3494, allocations: 16 kB / 444.2 MB, free: 7.145 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.3494, allocations: 12 kB / 444.2 MB, free: 7.133 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005009/0.35, allocations: 343.7 kB / 444.6 MB, free: 6.797 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001817/0.3518, allocations: 1.976 MB / 446.5 MB, free: 4.707 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003678/0.3522, allocations: 219.6 kB / 446.8 MB, free: 4.465 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.3523, allocations: 90.67 kB / 446.8 MB, free: 4.367 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.3524, allocations: 15.98 kB / 446.9 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.3524, allocations: 38.55 kB / 446.9 MB, free: 4.305 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 2.615e-06/0.3524, allocations: 0 / 446.9 MB, free: 4.305 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001502/0.3539, allocations: 0.8352 MB / 447.7 MB, free: 3.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.354, allocations: 106.8 kB / 447.8 MB, free: 3.281 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002757/0.3543, allocations: 333.6 kB / 448.2 MB, free: 2.945 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.3543, allocations: 29.7 kB / 448.2 MB, free: 2.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.3544, allocations: 271.6 kB / 448.5 MB, free: 2.641 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.114e-05/0.3545, allocations: 74.86 kB / 448.5 MB, free: 2.566 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.153e-05/0.3546, allocations: 73.66 kB / 448.6 MB, free: 2.488 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.3547, allocations: 342.8 kB / 448.9 MB, free: 2.145 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001771/0.3549, allocations: 83.94 kB / 449 MB, free: 2.062 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000228/0.3551, allocations: 228.6 kB / 449.2 MB, free: 1.777 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001083/0.3562, allocations: 0.5561 MB / 449.8 MB, free: 1.141 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3562, allocations: 4 kB / 449.8 MB, free: 1.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007401/0.357, allocations: 414.5 kB / 450.2 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.357, allocations: 11.28 kB / 450.2 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.357, allocations: 4 kB / 450.2 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003137/0.3573, allocations: 80.78 kB / 450.3 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002294/0.3576, allocations: 63.91 kB / 450.4 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002273/0.3599, allocations: 1.938 MB / 452.3 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002237/0.3601, allocations: 15.98 kB / 452.3 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.823e-05/0.3601, allocations: 20 kB / 452.3 MB, free: 14.45 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 system: $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 (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.0002548/0.3604, allocations: 193.7 kB / 452.5 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.3605, allocations: 39.59 kB / 452.6 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.038e-05/0.3606, allocations: 39.25 kB / 452.6 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.3606, allocations: 4 kB / 452.6 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3606, allocations: 3.938 kB / 452.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3606, allocations: 4 kB / 452.6 MB, free: 14.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001269/0.3619, allocations: 0.7728 MB / 453.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.3619, allocations: 0 / 453.4 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002565/0.3622, allocations: 51.84 kB / 453.4 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.975e-05/0.3623, allocations: 20.84 kB / 453.5 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.916e-05/0.3623, allocations: 8 kB / 453.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001045/0.3634, allocations: 1.379 MB / 454.8 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.3634, allocations: 8.016 kB / 454.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007414/0.3641, allocations: 0.5048 MB / 455.4 MB, free: 11.17 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001179/0.3643, allocations: 120.8 kB / 455.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.801e-05/0.3643, allocations: 4 kB / 455.5 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.3646, allocations: 16 kB / 455.5 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.223e-05/0.3646, allocations: 15.97 kB / 455.5 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.3647, allocations: 8 kB / 455.5 MB, free: 10.99 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002367/0.3649, allocations: 227.2 kB / 455.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3649, allocations: 4 kB / 455.7 MB, free: 10.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005155/0.3654, allocations: 84 kB / 455.8 MB, free: 10.69 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 (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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001447/0.3656, allocations: 111.1 kB / 455.9 MB, free: 10.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008802/0.3665, allocations: 367.2 kB / 456.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3665, allocations: 0 / 456.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004411/0.3669, allocations: 218.7 kB / 456.5 MB, free: 9.969 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007123/0.3677, allocations: 105.4 kB / 456.6 MB, free: 9.871 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.3694, allocations: 0.9206 MB / 457.5 MB, free: 8.914 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004746/0.3698, allocations: 0.8465 MB / 458.4 MB, free: 8.043 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001912/0.37, allocations: 55.25 kB / 458.4 MB, free: 7.988 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.586e-05/0.3701, allocations: 27.44 kB / 458.5 MB, free: 7.961 MB / 334.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3701, allocations: 3.938 kB / 458.5 MB, free: 7.957 MB / 334.1 MB Notification: Performance of Templates: time 0.009705/0.3798, allocations: 4.508 MB / 463 MB, free: 3.469 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (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 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)