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.001513/0.001513, allocations: 114.8 kB / 17.75 MB, free: 5.355 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.001753/0.001753, allocations: 184.5 kB / 18.67 MB, free: 4.441 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.372/1.372, allocations: 222.9 MB / 242.4 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.1752/0.1752, allocations: 38.04 MB / 330.6 MB, free: 8.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 59.91 kB / 458.8 MB, free: 6.855 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.357, allocations: 58.05 MB / 0.5048 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.005969/0.363, allocations: 4.804 MB / 0.5095 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002388/0.3654, allocations: 1.477 MB / 0.5109 GB, free: 3.453 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000337/0.3658, allocations: 18.59 kB / 0.5109 GB, free: 3.445 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004111/0.3662, allocations: 115.3 kB / 0.511 GB, free: 3.379 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007921/0.3671, allocations: 268.9 kB / 0.5113 GB, free: 3.219 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003995/0.3675, allocations: 138.7 kB / 0.5114 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007428/0.3682, allocations: 0.5895 MB / 0.512 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004716/0.3687, allocations: 393.2 kB / 0.5124 GB, free: 2.703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003495/0.3691, allocations: 247.8 kB / 0.5126 GB, free: 2.586 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003437/0.3694, allocations: 235.4 kB / 0.5128 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.54e-05/0.3695, allocations: 39.16 kB / 0.5129 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.178e-05/0.3696, allocations: 39.59 kB / 0.5129 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001425/0.3698, allocations: 126 kB / 0.513 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002093/0.37, allocations: 218.1 kB / 0.5132 GB, free: 2.285 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006248/0.3706, allocations: 0.503 MB / 0.5137 GB, free: 2.082 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.3706, allocations: 0 / 0.5137 GB, free: 2.082 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.476e-06/0.3706, allocations: 8.5 kB / 0.5137 GB, free: 2.074 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.3706, allocations: 0.75 kB / 0.5137 GB, free: 2.074 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.00121/0.3719, allocations: 0.6997 MB / 0.5144 GB, free: 1.523 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.3719, allocations: 9.625 kB / 0.5144 GB, free: 1.523 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.372, allocations: 48.22 kB / 0.5145 GB, free: 1.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006066/0.3726, allocations: 425.7 kB / 0.5149 GB, free: 1.188 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.52e-05/0.3727, allocations: 60.97 kB / 0.5149 GB, free: 1.141 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.895e-05/0.3728, allocations: 43.55 kB / 0.515 GB, free: 1.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007113/0.3735, allocations: 431.9 kB / 0.5154 GB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.3735, allocations: 1.844 kB / 0.5154 GB, free: 0.875 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.672e-05/0.3736, allocations: 11.84 kB / 0.5154 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.397e-05/0.3736, allocations: 9.625 kB / 0.5154 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005095/0.3741, allocations: 276.1 kB / 0.5157 GB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002211/0.3763, allocations: 1.836 MB / 0.5175 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003407/0.3767, allocations: 178.1 kB / 0.5176 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002076/0.3769, allocations: 77.3 kB / 0.5177 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.3769, allocations: 1.062 kB / 0.5177 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/0.377, allocations: 37.58 kB / 0.5177 GB, free: 15.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.884e-06/0.377, allocations: 1.125 kB / 0.5177 GB, free: 15.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001455/0.3785, allocations: 0.7037 MB / 0.5184 GB, free: 14.58 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.097e-05/0.3785, allocations: 110.7 kB / 0.5185 GB, free: 14.45 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003782/0.3789, allocations: 312.2 kB / 0.5188 GB, free: 14.28 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.282e-05/0.3789, allocations: 30.83 kB / 0.5189 GB, free: 14.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001981/0.3791, allocations: 245.9 kB / 0.5191 GB, free: 14.04 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.147e-05/0.3792, allocations: 70.23 kB / 0.5192 GB, free: 13.99 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.3794, allocations: 66.41 kB / 0.5192 GB, free: 13.95 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.3795, allocations: 340.4 kB / 0.5195 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002083/0.3797, allocations: 73.14 kB / 0.5196 GB, free: 13.6 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002947/0.38, allocations: 199 kB / 0.5198 GB, free: 13.41 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004359/0.3805, allocations: 286.4 kB / 0.5201 GB, free: 13.17 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.3805, allocations: 13.56 kB / 0.5201 GB, free: 13.16 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006341/0.3811, allocations: 328.1 kB / 0.5204 GB, free: 13.01 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.3812, allocations: 17.25 kB / 0.5204 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.031e-05/0.3812, allocations: 3.969 kB / 0.5204 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.327e-05/0.3812, allocations: 7.547 kB / 0.5204 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003047/0.3815, allocations: 71.88 kB / 0.5205 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.992e-05/0.3815, allocations: 12.55 kB / 0.5205 GB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001951/0.3817, allocations: 19.94 kB / 0.5205 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.559e-05/0.3818, allocations: 11.72 kB / 0.5205 GB, free: 12.98 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.0002155/0.382, allocations: 183.3 kB / 0.5207 GB, free: 12.83 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.669e-05/0.3821, allocations: 34.81 kB / 0.5208 GB, free: 12.81 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004296/0.3825, allocations: 195.7 kB / 0.5209 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.3825, allocations: 2.812 kB / 0.5209 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.3825, allocations: 2.875 kB / 0.5209 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.3825, allocations: 0.6562 kB / 0.5209 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.3836, allocations: 0.6128 MB / 0.5215 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.3836, allocations: 4.031 kB / 0.5215 GB, free: 12.26 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002414/0.3838, allocations: 46.48 kB / 0.5216 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.3838, allocations: 3.031 kB / 0.5216 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.729e-05/0.3839, allocations: 2.156 kB / 0.5216 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.3839, allocations: 2.953 kB / 0.5216 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.3839, allocations: 1.031 kB / 0.5216 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006363/0.3845, allocations: 457 kB / 0.522 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.527e-05/0.3846, allocations: 105.8 kB / 0.5221 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.775e-05/0.3847, allocations: 6.969 kB / 0.5221 GB, free: 11.81 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001818/0.3849, allocations: 8.469 kB / 0.5222 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.594e-05/0.3849, allocations: 11.34 kB / 0.5222 GB, free: 11.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.3849, allocations: 14.28 kB / 0.5222 GB, free: 11.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002495/0.3852, allocations: 216.7 kB / 0.5224 GB, free: 11.68 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3852, allocations: 0 / 0.5224 GB, free: 11.68 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004382/0.3857, allocations: 75.42 kB / 0.5225 GB, free: 11.67 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.0001292/0.3858, allocations: 103.9 kB / 0.5226 GB, free: 11.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004241/0.3862, allocations: 203.4 kB / 0.5227 GB, free: 11.51 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3862, allocations: 1.375 kB / 0.5228 GB, free: 11.51 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001646/0.3864, allocations: 77.44 kB / 0.5228 GB, free: 11.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006736/0.3871, allocations: 99.12 kB / 0.5229 GB, free: 11.45 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001647/0.3887, allocations: 0.9259 MB / 0.5238 GB, free: 10.83 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000475/0.3892, allocations: 0.8141 MB / 0.5246 GB, free: 10.12 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.606e-05/0.3893, allocations: 28.94 kB / 0.5246 GB, free: 10.11 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3893, allocations: 0 / 0.5246 GB, free: 10.11 MB / 398.1 MB Notification: Performance of Templates: time 0.008908/0.3982, allocations: 4.545 MB / 0.5291 GB, free: 9.18 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.mat","/var/lib/jenkins1/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