Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.DCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|machine.motor.tau_el|machine.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 107.8 kB / 17.06 MB, free: 6.137 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.001008/0.001008, allocations: 188 kB / 18 MB, free: 5.219 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.41/1.41, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1718/0.1718, allocations: 38.04 MB / 329.9 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 67.89 kB / 458.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4522/0.4538, allocations: 58.05 MB / 0.5041 GB, free: 7.832 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.00668/0.4605, allocations: 4.802 MB / 0.5088 GB, free: 4.52 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00244/0.463, allocations: 1.471 MB / 0.5102 GB, free: 3.473 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003755/0.4634, allocations: 18.66 kB / 0.5102 GB, free: 3.465 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006253/0.464, allocations: 119.7 kB / 0.5104 GB, free: 3.395 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001199/0.4654, allocations: 269.8 kB / 0.5106 GB, free: 3.234 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000593/0.466, allocations: 134.8 kB / 0.5107 GB, free: 3.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001124/0.4671, allocations: 0.5873 MB / 0.5113 GB, free: 2.879 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007012/0.4678, allocations: 401.1 kB / 0.5117 GB, free: 2.715 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003954/0.4682, allocations: 244 kB / 0.5119 GB, free: 2.602 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003739/0.4686, allocations: 238.9 kB / 0.5122 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.063e-05/0.4687, allocations: 38.59 kB / 0.5122 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.56e-05/0.4688, allocations: 40 kB / 0.5122 GB, free: 2.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.469, allocations: 121.9 kB / 0.5123 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002276/0.4692, allocations: 219 kB / 0.5126 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007531/0.47, allocations: 0.5061 MB / 0.5131 GB, free: 2.094 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.47, allocations: 3.938 kB / 0.5131 GB, free: 2.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.47, allocations: 1.062 kB / 0.5131 GB, free: 2.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.059e-05/0.47, allocations: 3.938 kB / 0.5131 GB, free: 2.086 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001244/0.4713, allocations: 0.6974 MB / 0.5137 GB, free: 1.539 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.4713, allocations: 16.97 kB / 0.5138 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.4714, allocations: 46.86 kB / 0.5138 GB, free: 1.508 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008044/0.4722, allocations: 422.9 kB / 0.5142 GB, free: 1.199 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001377/0.4724, allocations: 59.84 kB / 0.5143 GB, free: 1.152 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001098/0.4725, allocations: 44.2 kB / 0.5143 GB, free: 1.133 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/0.4736, allocations: 435.8 kB / 0.5147 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.017e-05/0.4737, allocations: 1.219 kB / 0.5147 GB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.305e-05/0.4737, allocations: 12.98 kB / 0.5147 GB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.198e-05/0.4738, allocations: 12.47 kB / 0.5147 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007243/0.4745, allocations: 276.3 kB / 0.515 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002436/0.4769, allocations: 1.836 MB / 0.5168 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003857/0.4773, allocations: 178.2 kB / 0.517 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.4775, allocations: 72.23 kB / 0.517 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.361e-05/0.4775, allocations: 2.375 kB / 0.517 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.775e-05/0.4776, allocations: 37.77 kB / 0.5171 GB, free: 15.1 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 3.246e-06/0.4776, allocations: 4 kB / 0.5171 GB, free: 15.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001777/0.4794, allocations: 0.7025 MB / 0.5178 GB, free: 14.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.933e-05/0.4795, allocations: 109.9 kB / 0.5179 GB, free: 14.46 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005471/0.48, allocations: 311.9 kB / 0.5182 GB, free: 14.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.967e-05/0.4801, allocations: 30.98 kB / 0.5182 GB, free: 14.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002534/0.4803, allocations: 245.9 kB / 0.5184 GB, free: 14.05 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.094e-05/0.4804, allocations: 69.98 kB / 0.5185 GB, free: 14 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.4806, allocations: 67.34 kB / 0.5186 GB, free: 13.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002105/0.4808, allocations: 340.8 kB / 0.5189 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002717/0.4811, allocations: 72.33 kB / 0.519 GB, free: 13.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003251/0.4814, allocations: 198.8 kB / 0.5192 GB, free: 13.42 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004734/0.4819, allocations: 293.7 kB / 0.5194 GB, free: 13.17 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.4819, allocations: 2.156 kB / 0.5194 GB, free: 13.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005905/0.4825, allocations: 328.4 kB / 0.5197 GB, free: 13.02 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.474e-05/0.4826, allocations: 13.25 kB / 0.5198 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.105e-05/0.4826, allocations: 3.531 kB / 0.5198 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.753e-05/0.4826, allocations: 6.75 kB / 0.5198 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003207/0.4829, allocations: 73.91 kB / 0.5198 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.898e-05/0.483, allocations: 14.05 kB / 0.5199 GB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001912/0.4832, allocations: 16.7 kB / 0.5199 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.061e-05/0.4832, allocations: 12.31 kB / 0.5199 GB, free: 13 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002213/0.4834, allocations: 188 kB / 0.5201 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.4836, allocations: 34.03 kB / 0.5201 GB, free: 12.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004696/0.484, allocations: 200 kB / 0.5203 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.532e-06/0.4841, allocations: 2.875 kB / 0.5203 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.417e-06/0.4841, allocations: 1.734 kB / 0.5203 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.4841, allocations: 2.359 kB / 0.5203 GB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.4851, allocations: 0.6156 MB / 0.5209 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.4852, allocations: 1.875 kB / 0.5209 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002445/0.4854, allocations: 45.45 kB / 0.5209 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.4854, allocations: 2.375 kB / 0.5209 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.933e-05/0.4854, allocations: 2.812 kB / 0.5209 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.4855, allocations: 2.062 kB / 0.5209 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.4855, allocations: 1.891 kB / 0.5209 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000703/0.4862, allocations: 464.7 kB / 0.5214 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.388e-05/0.4863, allocations: 101.6 kB / 0.5215 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.442e-05/0.4863, allocations: 8.016 kB / 0.5215 GB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001835/0.4865, allocations: 12.41 kB / 0.5215 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.642e-05/0.4866, allocations: 15.55 kB / 0.5215 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/0.4866, allocations: 9.594 kB / 0.5215 GB, free: 11.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002355/0.4869, allocations: 213.6 kB / 0.5217 GB, free: 11.69 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.4869, allocations: 0 / 0.5217 GB, free: 11.69 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004544/0.4873, allocations: 74.69 kB / 0.5218 GB, free: 11.68 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * 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 (20): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001441/0.4875, allocations: 107.1 kB / 0.5219 GB, free: 11.58 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000484/0.488, allocations: 196.1 kB / 0.5221 GB, free: 11.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.488, allocations: 0 / 0.5221 GB, free: 11.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001781/0.4882, allocations: 80.53 kB / 0.5222 GB, free: 11.49 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007212/0.4889, allocations: 101.1 kB / 0.5223 GB, free: 11.46 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001689/0.4906, allocations: 0.8906 MB / 0.5231 GB, free: 10.88 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005413/0.4911, allocations: 0.8142 MB / 0.5239 GB, free: 10.16 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002313/0.4914, allocations: 53.84 kB / 0.524 GB, free: 10.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.926e-05/0.4915, allocations: 31 kB / 0.524 GB, free: 10.13 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4915, allocations: 0 / 0.524 GB, free: 10.13 MB / 398.1 MB Notification: Performance of Templates: time 0.01047/0.502, allocations: 3.454 MB / 0.5274 GB, free: 9.867 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches