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/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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001944/0.001944, allocations: 112.3 kB / 17.06 MB, free: 5.988 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.001822/0.001822, allocations: 200 kB / 18 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1764/0.1764, allocations: 38.03 MB / 329.9 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 63.89 kB / 458.2 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4537/0.455, allocations: 58.05 MB / 0.5041 GB, free: 7.715 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007495/0.4625, allocations: 5.262 MB / 0.5092 GB, free: 4.078 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002617/0.4652, allocations: 1.568 MB / 0.5108 GB, free: 2.957 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003159/0.4655, allocations: 19.81 kB / 0.5108 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004733/0.466, allocations: 121.2 kB / 0.5109 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009925/0.4671, allocations: 320.7 kB / 0.5112 GB, free: 2.691 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005468/0.4677, allocations: 154.1 kB / 0.5114 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009917/0.4687, allocations: 0.6897 MB / 0.512 GB, free: 2.281 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006389/0.4693, allocations: 468.9 kB / 0.5125 GB, free: 2.078 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004634/0.4698, allocations: 287.8 kB / 0.5128 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004519/0.4702, allocations: 291.2 kB / 0.513 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.841e-05/0.4703, allocations: 50 kB / 0.5131 GB, free: 1.812 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001143/0.4705, allocations: 45.88 kB / 0.5131 GB, free: 1.812 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000186/0.4706, allocations: 156 kB / 0.5133 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002909/0.4709, allocations: 260.9 kB / 0.5135 GB, free: 1.582 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008119/0.4718, allocations: 0.5926 MB / 0.5141 GB, free: 1.344 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.4718, allocations: 2.344 kB / 0.5141 GB, free: 1.344 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4718, allocations: 0 / 0.5141 GB, free: 1.344 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.4718, allocations: 0 / 0.5141 GB, free: 1.344 MB / 382.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.001371/0.4732, allocations: 0.7881 MB / 0.5149 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.4732, allocations: 10.56 kB / 0.5149 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.4733, allocations: 54.75 kB / 0.5149 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000723/0.4741, allocations: 456 kB / 0.5154 GB, free: 408 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.385e-05/0.4742, allocations: 72.06 kB / 0.5154 GB, free: 352 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.797e-05/0.4743, allocations: 44.12 kB / 0.5155 GB, free: 336 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008155/0.4751, allocations: 0.5018 MB / 0.516 GB, free: 60 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/0.4751, allocations: 2.5 kB / 0.516 GB, free: 60 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.176e-05/0.4752, allocations: 15.66 kB / 0.516 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.678e-05/0.4752, allocations: 11.09 kB / 0.516 GB, free: 48 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007598/0.476, allocations: 340.7 kB / 0.5163 GB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00329/0.4793, allocations: 1.975 MB / 0.5183 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006634/0.4799, allocations: 227.2 kB / 0.5185 GB, free: 14.26 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002539/0.4802, allocations: 93.45 kB / 0.5186 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.952e-05/0.4802, allocations: 6.281 kB / 0.5186 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.203e-05/0.4803, allocations: 37.11 kB / 0.5186 GB, free: 14.16 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 1.893e-06/0.4803, allocations: 0 / 0.5186 GB, free: 14.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.002148/0.4825, allocations: 0.8311 MB / 0.5194 GB, free: 13.6 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.751e-05/0.4826, allocations: 110.1 kB / 0.5195 GB, free: 13.47 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004463/0.483, allocations: 332.1 kB / 0.5198 GB, free: 13.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.208e-05/0.4831, allocations: 34.98 kB / 0.5199 GB, free: 13.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002199/0.4833, allocations: 273.4 kB / 0.5201 GB, free: 13.03 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.689e-05/0.4834, allocations: 83.62 kB / 0.5202 GB, free: 12.96 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/0.4835, allocations: 63.45 kB / 0.5203 GB, free: 12.92 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001515/0.4837, allocations: 341.6 kB / 0.5206 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.4839, allocations: 84.8 kB / 0.5207 GB, free: 12.57 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000311/0.4842, allocations: 208.3 kB / 0.5209 GB, free: 12.38 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001353/0.4856, allocations: 0.5609 MB / 0.5214 GB, free: 11.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.82e-06/0.4856, allocations: 0.9688 kB / 0.5214 GB, free: 11.98 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009515/0.4865, allocations: 419.6 kB / 0.5218 GB, free: 11.79 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.067e-05/0.4866, allocations: 6.25 kB / 0.5218 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/0.4866, allocations: 4.625 kB / 0.5218 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003697/0.487, allocations: 83.23 kB / 0.5219 GB, free: 11.77 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002733/0.4873, allocations: 62.45 kB / 0.522 GB, free: 11.76 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002379/0.4897, allocations: 1.937 MB / 0.5239 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003062/0.49, allocations: 23.05 kB / 0.5239 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.329e-05/0.49, allocations: 17.66 kB / 0.5239 GB, free: 9.996 MB / 398.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.0003587/0.4904, allocations: 197.9 kB / 0.5241 GB, free: 9.836 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.339e-05/0.4905, allocations: 31.47 kB / 0.5241 GB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.614e-05/0.4906, allocations: 39.98 kB / 0.5242 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.78e-06/0.4906, allocations: 3.406 kB / 0.5242 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.4906, allocations: 1.156 kB / 0.5242 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.4906, allocations: 4.094 kB / 0.5242 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001368/0.492, allocations: 0.7705 MB / 0.5249 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.492, allocations: 5.734 kB / 0.5249 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002448/0.4923, allocations: 40.5 kB / 0.525 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.437e-05/0.4924, allocations: 21.8 kB / 0.525 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.273e-05/0.4924, allocations: 11.41 kB / 0.525 GB, free: 9.227 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001029/0.4934, allocations: 1.386 MB / 0.5264 GB, free: 7.805 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.4934, allocations: 1.375 kB / 0.5264 GB, free: 7.805 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008155/0.4943, allocations: 0.5009 MB / 0.5268 GB, free: 7.461 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001439/0.4944, allocations: 122.5 kB / 0.527 GB, free: 7.34 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.167e-05/0.4945, allocations: 7.922 kB / 0.527 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000197/0.4947, allocations: 6.047 kB / 0.527 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.496e-05/0.4948, allocations: 22.02 kB / 0.527 GB, free: 7.328 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.197e-05/0.4948, allocations: 8.875 kB / 0.527 GB, free: 7.324 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002864/0.4951, allocations: 236.7 kB / 0.5272 GB, free: 7.195 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4951, allocations: 9.312 kB / 0.5272 GB, free: 7.188 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005751/0.4957, allocations: 86.38 kB / 0.5273 GB, free: 7.18 MB / 398.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.0001434/0.4958, allocations: 103.9 kB / 0.5274 GB, free: 7.086 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008101/0.4966, allocations: 362.6 kB / 0.5278 GB, free: 6.891 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.4966, allocations: 0 / 0.5278 GB, free: 6.891 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000375/0.497, allocations: 216.7 kB / 0.528 GB, free: 6.746 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007048/0.4977, allocations: 113.1 kB / 0.5281 GB, free: 6.707 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001717/0.4995, allocations: 0.9217 MB / 0.529 GB, free: 6.125 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004636/0.4999, allocations: 0.8438 MB / 0.5298 GB, free: 5.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00018/0.5001, allocations: 52.23 kB / 0.5299 GB, free: 5.395 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.39e-05/0.5002, allocations: 26.81 kB / 0.5299 GB, free: 5.387 MB / 398.1 MB Notification: Performance of SimCode: time 4.61e-07/0.5002, allocations: 1.094 kB / 0.5299 GB, free: 5.387 MB / 398.1 MB Notification: Performance of Templates: time 0.01016/0.5104, allocations: 4.587 MB / 0.5344 GB, free: 4.121 MB / 398.1 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/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches