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.001149/0.001149, allocations: 114.1 kB / 17.07 MB, free: 5.984 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.001241/0.001241, allocations: 194.9 kB / 18.01 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.422/1.422, 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.18/0.18, allocations: 38.04 MB / 329.9 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 67.89 kB / 458.2 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5162/0.5174, allocations: 58.05 MB / 0.5041 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.007466/0.525, allocations: 4.787 MB / 0.5088 GB, free: 4.406 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002927/0.5279, allocations: 1.478 MB / 0.5102 GB, free: 3.352 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003697/0.5283, allocations: 14.53 kB / 0.5102 GB, free: 3.348 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000493/0.5288, allocations: 116 kB / 0.5104 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009353/0.5298, allocations: 268.1 kB / 0.5106 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005334/0.5304, allocations: 142.4 kB / 0.5107 GB, free: 3.039 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001001/0.5314, allocations: 0.5797 MB / 0.5113 GB, free: 2.766 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006646/0.5321, allocations: 398 kB / 0.5117 GB, free: 2.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003524/0.5324, allocations: 238.8 kB / 0.5119 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003911/0.5328, allocations: 234.7 kB / 0.5121 GB, free: 2.383 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.947e-05/0.5329, allocations: 39 kB / 0.5122 GB, free: 2.383 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.974e-05/0.533, allocations: 40.53 kB / 0.5122 GB, free: 2.383 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001538/0.5332, allocations: 124.3 kB / 0.5123 GB, free: 2.316 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002329/0.5334, allocations: 222.5 kB / 0.5126 GB, free: 2.184 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007556/0.5342, allocations: 0.5077 MB / 0.513 GB, free: 1.977 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.5342, allocations: 4 kB / 0.513 GB, free: 1.973 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.5342, allocations: 1.156 kB / 0.5131 GB, free: 1.973 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.5342, allocations: 0 / 0.5131 GB, free: 1.973 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.001396/0.5356, allocations: 0.7159 MB / 0.5137 GB, free: 1.406 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.5357, allocations: 13.75 kB / 0.5138 GB, free: 1.402 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.5358, allocations: 47.14 kB / 0.5138 GB, free: 1.379 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006936/0.5365, allocations: 430.5 kB / 0.5142 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/0.5366, allocations: 60.67 kB / 0.5143 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.94e-05/0.5367, allocations: 40.05 kB / 0.5143 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008174/0.5376, allocations: 427.9 kB / 0.5147 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.374e-05/0.5376, allocations: 5.375 kB / 0.5147 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.056e-05/0.5376, allocations: 11.91 kB / 0.5147 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.86e-05/0.5377, allocations: 9.453 kB / 0.5147 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005906/0.5383, allocations: 275.8 kB / 0.515 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002753/0.541, allocations: 1.83 MB / 0.5168 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004728/0.5415, allocations: 186.3 kB / 0.517 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00019/0.5417, allocations: 72.81 kB / 0.517 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.443e-05/0.5418, allocations: 1.953 kB / 0.517 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.474e-05/0.5418, allocations: 37.55 kB / 0.5171 GB, free: 14.97 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.793e-06/0.5418, allocations: 4 kB / 0.5171 GB, free: 14.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=19): time 0.001816/0.5436, allocations: 0.7155 MB / 0.5178 GB, free: 14.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.681e-05/0.5437, allocations: 106.3 kB / 0.5179 GB, free: 14.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004643/0.5442, allocations: 316.2 kB / 0.5182 GB, free: 14.15 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.5442, allocations: 30.95 kB / 0.5182 GB, free: 14.11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002523/0.5445, allocations: 247.3 kB / 0.5185 GB, free: 13.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.406e-05/0.5446, allocations: 78.08 kB / 0.5185 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001427/0.5448, allocations: 67.16 kB / 0.5186 GB, free: 13.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002038/0.545, allocations: 340 kB / 0.5189 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002351/0.5452, allocations: 72.39 kB / 0.519 GB, free: 13.46 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003342/0.5455, allocations: 203 kB / 0.5192 GB, free: 13.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000493/0.5461, allocations: 294.7 kB / 0.5195 GB, free: 13.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.5461, allocations: 1.594 kB / 0.5195 GB, free: 13.02 MB / 398.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006326/0.5467, allocations: 323.4 kB / 0.5198 GB, free: 12.88 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.866e-05/0.5467, allocations: 10.84 kB / 0.5198 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.415e-05/0.5468, allocations: 9.266 kB / 0.5198 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.755e-05/0.5468, allocations: 6 kB / 0.5198 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003269/0.5471, allocations: 81.42 kB / 0.5199 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.58e-05/0.5472, allocations: 10.8 kB / 0.5199 GB, free: 12.85 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/0.5474, allocations: 16.33 kB / 0.5199 GB, free: 12.84 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.181e-05/0.5474, allocations: 17.31 kB / 0.5199 GB, free: 12.84 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.0002951/0.5477, allocations: 187.1 kB / 0.5201 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.021e-05/0.5478, allocations: 34.34 kB / 0.5201 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000499/0.5483, allocations: 193.2 kB / 0.5203 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.5484, allocations: 2.188 kB / 0.5203 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.862e-06/0.5484, allocations: 1.469 kB / 0.5203 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.5484, allocations: 3.203 kB / 0.5203 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001154/0.5495, allocations: 0.6125 MB / 0.5209 GB, free: 12.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-05/0.5496, allocations: 5.734 kB / 0.5209 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.5498, allocations: 41.91 kB / 0.521 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.552e-06/0.5498, allocations: 2.875 kB / 0.521 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.458e-05/0.5499, allocations: 6.797 kB / 0.521 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.5499, allocations: 1 kB / 0.521 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.5499, allocations: 2.016 kB / 0.521 GB, free: 12.11 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006949/0.5506, allocations: 462.5 kB / 0.5214 GB, free: 11.78 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.922e-05/0.5507, allocations: 108 kB / 0.5215 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.906e-05/0.5507, allocations: 6.984 kB / 0.5215 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.5509, allocations: 3.953 kB / 0.5215 GB, free: 11.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.266e-05/0.551, allocations: 19.59 kB / 0.5215 GB, free: 11.65 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.831e-05/0.551, allocations: 5.359 kB / 0.5216 GB, free: 11.65 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003267/0.5514, allocations: 217.9 kB / 0.5218 GB, free: 11.54 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5514, allocations: 0 / 0.5218 GB, free: 11.54 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005046/0.5519, allocations: 74.44 kB / 0.5218 GB, free: 11.52 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.0001511/0.552, allocations: 111.8 kB / 0.5219 GB, free: 11.42 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000494/0.5525, allocations: 207.8 kB / 0.5221 GB, free: 11.35 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.5526, allocations: 4 kB / 0.5221 GB, free: 11.34 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001823/0.5527, allocations: 78.5 kB / 0.5222 GB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007063/0.5535, allocations: 98.28 kB / 0.5223 GB, free: 11.29 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00182/0.5553, allocations: 0.9009 MB / 0.5232 GB, free: 10.7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004928/0.5558, allocations: 0.8114 MB / 0.524 GB, free: 9.988 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002145/0.556, allocations: 47.61 kB / 0.524 GB, free: 9.973 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.234e-05/0.5561, allocations: 31.66 kB / 0.5241 GB, free: 9.961 MB / 398.1 MB Notification: Performance of SimCode: time 4e-07/0.5561, allocations: 0 / 0.5241 GB, free: 9.961 MB / 398.1 MB Notification: Performance of Templates: time 0.01063/0.5668, allocations: 3.464 MB / 0.5274 GB, free: 9.695 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