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.001567/0.001567, allocations: 105.5 kB / 17.59 MB, free: 5.445 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.001749/0.001749, allocations: 187.6 kB / 18.51 MB, free: 4.527 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.287/1.287, allocations: 222.9 MB / 242.2 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1711/0.1711, allocations: 38.03 MB / 330.4 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 64.88 kB / 399.5 MB, free: 34.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09532/0.09663, allocations: 58.06 MB / 457.5 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.005948/0.1026, allocations: 4.787 MB / 462.3 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002032/0.1047, allocations: 1.487 MB / 463.8 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002025/0.1049, allocations: 19.88 kB / 463.8 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003302/0.1052, allocations: 111.2 kB / 463.9 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005848/0.1059, allocations: 266.4 kB / 464.2 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003131/0.1062, allocations: 135.8 kB / 464.3 MB, free: 1.227 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006325/0.1068, allocations: 0.5877 MB / 464.9 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004238/0.1073, allocations: 394.6 kB / 465.3 MB, free: 252 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002658/0.1075, allocations: 231.1 kB / 465.5 MB, free: 20 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003236/0.1079, allocations: 239 kB / 465.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.604e-05/0.1079, allocations: 40 kB / 465.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.587e-05/0.108, allocations: 40 kB / 465.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.1082, allocations: 123.6 kB / 466 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001996/0.1084, allocations: 226.9 kB / 466.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004263/0.1088, allocations: 0.4944 MB / 466.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.1088, allocations: 4 kB / 466.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1088, allocations: 0 / 466.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.1088, allocations: 0 / 466.7 MB, free: 14.86 MB / 350.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.001133/0.11, allocations: 0.7031 MB / 467.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.11, allocations: 8.031 kB / 467.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.023e-05/0.1101, allocations: 56.31 kB / 467.5 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005013/0.1106, allocations: 400 kB / 467.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.028e-05/0.1107, allocations: 62.62 kB / 467.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.324e-05/0.1108, allocations: 36 kB / 467.9 MB, free: 13.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000605/0.1114, allocations: 432.1 kB / 468.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.1114, allocations: 0 / 468.4 MB, free: 13.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.617e-05/0.1115, allocations: 16 kB / 468.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.366e-05/0.1115, allocations: 12 kB / 468.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004867/0.112, allocations: 273.9 kB / 468.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001965/0.114, allocations: 1.838 MB / 470.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003233/0.1143, allocations: 179.5 kB / 470.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.1144, allocations: 74.67 kB / 470.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.777e-05/0.1145, allocations: 3.984 kB / 470.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.399e-05/0.1145, allocations: 42.5 kB / 470.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.563e-06/0.1145, allocations: 0 / 470.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001215/0.1157, allocations: 0.7095 MB / 471.5 MB, free: 9.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.968e-05/0.1158, allocations: 106.8 kB / 471.6 MB, free: 9.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002823/0.1161, allocations: 312.5 kB / 471.9 MB, free: 9.262 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.1161, allocations: 33.7 kB / 471.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/0.1163, allocations: 239.9 kB / 472.2 MB, free: 8.984 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.358e-05/0.1163, allocations: 70.95 kB / 472.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.74e-05/0.1164, allocations: 69.92 kB / 472.3 MB, free: 8.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.1165, allocations: 338.8 kB / 472.6 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.1167, allocations: 76.61 kB / 472.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.1169, allocations: 197.5 kB / 472.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003846/0.1173, allocations: 293.9 kB / 473.2 MB, free: 7.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1173, allocations: 4 kB / 473.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005321/0.1179, allocations: 328.5 kB / 473.5 MB, free: 7.504 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.1179, allocations: 10.75 kB / 473.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1179, allocations: 4 kB / 473.5 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.1179, allocations: 11.94 kB / 473.5 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002904/0.1182, allocations: 83.83 kB / 473.6 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.1183, allocations: 4 kB / 473.6 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001759/0.1184, allocations: 15.94 kB / 473.7 MB, free: 7.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.279e-05/0.1185, allocations: 16 kB / 473.7 MB, free: 7.363 MB / 350.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.0001618/0.1186, allocations: 185.7 kB / 473.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.993e-05/0.1187, allocations: 35.56 kB / 473.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003747/0.1191, allocations: 188.7 kB / 474.1 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.1191, allocations: 4 kB / 474.1 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.1191, allocations: 0 / 474.1 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.1191, allocations: 7.984 kB / 474.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008414/0.12, allocations: 0.6201 MB / 474.7 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.12, allocations: 0 / 474.7 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002335/0.1202, allocations: 43.91 kB / 474.7 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.1202, allocations: 0 / 474.7 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.1203, allocations: 8 kB / 474.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.1203, allocations: 0 / 474.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1203, allocations: 4 kB / 474.8 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005409/0.1208, allocations: 450.5 kB / 475.2 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.872e-05/0.1209, allocations: 112.7 kB / 475.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.52e-05/0.121, allocations: 4 kB / 475.3 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001848/0.1211, allocations: 4 kB / 475.3 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.429e-05/0.1212, allocations: 19.89 kB / 475.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.292e-05/0.1212, allocations: 11.98 kB / 475.3 MB, free: 5.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001995/0.1214, allocations: 219.1 kB / 475.6 MB, free: 5.355 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1214, allocations: 3.938 kB / 475.6 MB, free: 5.352 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003987/0.1218, allocations: 71.94 kB / 475.6 MB, free: 5.281 MB / 350.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.0001013/0.122, allocations: 99.28 kB / 475.7 MB, free: 5.176 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004206/0.1224, allocations: 204.1 kB / 475.9 MB, free: 4.977 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.1224, allocations: 4 kB / 475.9 MB, free: 4.973 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000184/0.1226, allocations: 74.56 kB / 476 MB, free: 4.902 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006664/0.1233, allocations: 113.2 kB / 476.1 MB, free: 4.797 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00157/0.1248, allocations: 0.9219 MB / 477 MB, free: 3.832 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/0.1252, allocations: 0.8107 MB / 477.8 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.884e-05/0.1253, allocations: 31.42 kB / 477.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1253, allocations: 0 / 477.9 MB, free: 2.965 MB / 350.1 MB Notification: Performance of Templates: time 0.00713/0.1324, allocations: 4.513 MB / 482.4 MB, free: 14.47 MB / 366.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