Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001956/0.001956, allocations: 186.5 kB / 17.27 MB, free: 4.504 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.539/1.539, allocations: 205.1 MB / 223.1 MB, free: 8.48 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.00127/0.00127, allocations: 93.53 kB / 270.5 MB, free: 8.445 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.231/0.231, allocations: 38 MB / 355.8 MB, free: 2.949 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009874/0.0009874, allocations: 51.92 kB / 421.9 MB, free: 37.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3222/0.3232, allocations: 55.24 MB / 477.1 MB, free: 9.906 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.009099/0.3324, allocations: 6.1 MB / 483.2 MB, free: 5.602 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004041/0.3365, allocations: 1.883 MB / 485.1 MB, free: 4.25 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008931/0.3374, allocations: 34.16 kB / 485.1 MB, free: 4.238 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005709/0.338, allocations: 109.5 kB / 485.2 MB, free: 4.184 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001096/0.3392, allocations: 283.9 kB / 485.5 MB, free: 4.02 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005478/0.3397, allocations: 132.3 kB / 485.6 MB, free: 3.938 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001649/0.3414, allocations: 0.892 MB / 486.5 MB, free: 3.594 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006736/0.3421, allocations: 377.5 kB / 486.9 MB, free: 3.441 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000552/0.3426, allocations: 243.1 kB / 487.1 MB, free: 3.34 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005/0.3432, allocations: 295.5 kB / 487.4 MB, free: 3.219 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.688e-05/0.3432, allocations: 35.62 kB / 487.5 MB, free: 3.215 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.051e-05/0.3433, allocations: 31.62 kB / 487.5 MB, free: 3.215 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000174/0.3435, allocations: 139.7 kB / 487.6 MB, free: 3.152 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002914/0.3438, allocations: 252.1 kB / 487.9 MB, free: 3.008 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007433/0.3446, allocations: 0.5716 MB / 488.4 MB, free: 2.781 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3446, allocations: 3.938 kB / 488.4 MB, free: 2.777 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3446, allocations: 0 / 488.4 MB, free: 2.777 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.3446, allocations: 1.156 kB / 488.4 MB, free: 2.777 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001405/0.346, allocations: 0.7812 MB / 489.2 MB, free: 2.188 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.355e-05/0.3461, allocations: 13.08 kB / 489.2 MB, free: 2.184 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.3462, allocations: 55.14 kB / 489.3 MB, free: 2.156 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006708/0.3469, allocations: 431 kB / 489.7 MB, free: 1.836 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.159e-05/0.347, allocations: 66.69 kB / 489.8 MB, free: 1.785 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.921e-05/0.347, allocations: 48.84 kB / 489.8 MB, free: 1.766 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008255/0.3479, allocations: 0.5016 MB / 490.3 MB, free: 1.492 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.919e-05/0.3479, allocations: 9.734 kB / 490.3 MB, free: 1.484 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.691e-05/0.348, allocations: 19.91 kB / 490.4 MB, free: 1.469 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.155e-05/0.348, allocations: 11.53 kB / 490.4 MB, free: 1.469 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007758/0.3488, allocations: 336.2 kB / 490.7 MB, free: 1.359 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002635/0.3514, allocations: 1.983 MB / 492.7 MB, free: 15.83 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004959/0.3519, allocations: 226.8 kB / 492.9 MB, free: 15.69 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002181/0.3522, allocations: 98.22 kB / 493 MB, free: 15.64 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.458e-05/0.3522, allocations: 1.344 kB / 493 MB, free: 15.64 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/0.3523, allocations: 37.39 kB / 493 MB, free: 15.6 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 2.455e-06/0.3523, allocations: 0 / 493 MB, free: 15.6 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.002036/0.3543, allocations: 0.8311 MB / 493.9 MB, free: 15.03 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.647e-05/0.3544, allocations: 110 kB / 494 MB, free: 14.9 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004626/0.3549, allocations: 337 kB / 494.3 MB, free: 14.72 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.3549, allocations: 31.02 kB / 494.3 MB, free: 14.68 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002132/0.3551, allocations: 262 kB / 494.6 MB, free: 14.47 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.168e-05/0.3552, allocations: 83.44 kB / 494.7 MB, free: 14.41 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.3553, allocations: 67.91 kB / 494.7 MB, free: 14.36 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.3555, allocations: 345.2 kB / 495.1 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002182/0.3558, allocations: 84.31 kB / 495.2 MB, free: 14.01 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003235/0.3561, allocations: 216.7 kB / 495.4 MB, free: 13.81 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001265/0.3574, allocations: 0.5699 MB / 495.9 MB, free: 13.39 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3574, allocations: 1.438 kB / 495.9 MB, free: 13.39 MB / 330.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009211/0.3583, allocations: 411.2 kB / 496.3 MB, free: 13.21 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.3583, allocations: 7.781 kB / 496.3 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.3584, allocations: 8.781 kB / 496.4 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003492/0.3587, allocations: 73.61 kB / 496.4 MB, free: 13.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.359, allocations: 66.75 kB / 496.5 MB, free: 13.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001979/0.361, allocations: 1.751 MB / 498.2 MB, free: 11.6 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002703/0.3613, allocations: 22.23 kB / 498.3 MB, free: 11.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.608e-05/0.3613, allocations: 18.59 kB / 498.3 MB, free: 11.58 MB / 330.7 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.00027/0.3616, allocations: 191.3 kB / 498.5 MB, free: 11.43 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.401e-05/0.3617, allocations: 31.69 kB / 498.5 MB, free: 11.41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.3618, allocations: 42.41 kB / 498.5 MB, free: 11.39 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.3618, allocations: 2.375 kB / 498.5 MB, free: 11.39 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.3618, allocations: 6.969 kB / 498.5 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.83e-06/0.3618, allocations: 0.6094 kB / 498.6 MB, free: 11.38 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001316/0.3632, allocations: 0.7828 MB / 499.3 MB, free: 10.83 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.3632, allocations: 1.344 kB / 499.3 MB, free: 10.83 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002496/0.3634, allocations: 45.11 kB / 499.4 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.711e-05/0.3635, allocations: 30.08 kB / 499.4 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.842e-05/0.3636, allocations: 3.281 kB / 499.4 MB, free: 10.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008564/0.3644, allocations: 1.285 MB / 0.489 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.3644, allocations: 5.125 kB / 0.489 GB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004/0.3684, allocations: 3.409 MB / 0.4923 GB, free: 6.539 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/0.3686, allocations: 118.1 kB / 0.4924 GB, free: 6.422 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.048e-05/0.3686, allocations: 11.02 kB / 0.4924 GB, free: 6.414 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001918/0.3688, allocations: 11 kB / 0.4924 GB, free: 6.41 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.303e-05/0.3689, allocations: 19 kB / 0.4924 GB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.3689, allocations: 9.234 kB / 0.4925 GB, free: 6.402 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002759/0.3692, allocations: 228.9 kB / 0.4927 GB, free: 6.277 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3692, allocations: 0 / 0.4927 GB, free: 6.277 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007393/0.37, allocations: 119.6 kB / 0.4928 GB, free: 6.266 MB / 330.7 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.0001147/0.3701, allocations: 99.83 kB / 0.4929 GB, free: 6.176 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007703/0.3709, allocations: 368.2 kB / 0.4932 GB, free: 5.953 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.3709, allocations: 0 / 0.4932 GB, free: 5.953 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003581/0.3713, allocations: 221.9 kB / 0.4934 GB, free: 5.789 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006943/0.372, allocations: 100.4 kB / 0.4935 GB, free: 5.738 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/0.3741, allocations: 1.42 MB / 0.4949 GB, free: 4.613 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004743/0.3746, allocations: 0.8474 MB / 0.4958 GB, free: 3.84 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002392/0.3749, allocations: 52.22 kB / 0.4958 GB, free: 3.812 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.323e-05/0.375, allocations: 27.56 kB / 0.4958 GB, free: 3.805 MB / 330.7 MB Notification: Performance of SimCode: time 7.02e-07/0.375, allocations: 0 / 0.4958 GB, free: 3.805 MB / 330.7 MB Notification: Performance of Templates: time 0.01058/0.3855, allocations: 4.784 MB / 0.5005 GB, free: 1.438 MB / 330.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches