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.001109/0.001109, allocations: 116.5 kB / 17.7 MB, free: 5.438 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.001123/0.001123, allocations: 191 kB / 18.63 MB, free: 4.508 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.309/1.309, allocations: 222.9 MB / 242.3 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1781/0.1781, allocations: 38.05 MB / 330.5 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 61.25 kB / 400.3 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09772/0.09899, allocations: 58.06 MB / 458.3 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.005802/0.1048, allocations: 4.798 MB / 463.1 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001889/0.1067, allocations: 1.495 MB / 464.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000169/0.1069, allocations: 11.94 kB / 464.6 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002845/0.1072, allocations: 107.1 kB / 464.7 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005074/0.1078, allocations: 270.4 kB / 465 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002671/0.108, allocations: 143.8 kB / 465.1 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005808/0.1086, allocations: 0.576 MB / 465.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003958/0.109, allocations: 394.6 kB / 466.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002386/0.1093, allocations: 243 kB / 466.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002826/0.1096, allocations: 231.1 kB / 466.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.699e-05/0.1096, allocations: 36 kB / 466.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.084e-05/0.1097, allocations: 40 kB / 466.6 MB, free: 15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000114/0.1098, allocations: 123.6 kB / 466.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001866/0.11, allocations: 226.9 kB / 467 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003894/0.1104, allocations: 0.5061 MB / 467.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.1104, allocations: 0 / 467.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1104, allocations: 4 kB / 467.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.755e-06/0.1104, allocations: 3.984 kB / 467.5 MB, free: 14.14 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.00103/0.1115, allocations: 0.703 MB / 468.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.762e-05/0.1115, allocations: 8.031 kB / 468.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.397e-05/0.1116, allocations: 48.38 kB / 468.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005509/0.1121, allocations: 428 kB / 468.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.472e-05/0.1122, allocations: 58.64 kB / 468.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.54e-05/0.1123, allocations: 43.97 kB / 468.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005567/0.1129, allocations: 428.1 kB / 469.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.1129, allocations: 3.984 kB / 469.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.824e-05/0.1129, allocations: 12 kB / 469.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.056e-06/0.1129, allocations: 8 kB / 469.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004514/0.1134, allocations: 274 kB / 469.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001759/0.1152, allocations: 1.834 MB / 471.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002841/0.1155, allocations: 182.8 kB / 471.5 MB, free: 9.867 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001341/0.1156, allocations: 74.67 kB / 471.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.1156, allocations: 4 kB / 471.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.268e-05/0.1156, allocations: 34.5 kB / 471.6 MB, free: 9.738 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.342e-06/0.1157, allocations: 0 / 471.6 MB, free: 9.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001067/0.1167, allocations: 0.7136 MB / 472.3 MB, free: 8.969 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.1168, allocations: 106.8 kB / 472.4 MB, free: 8.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002785/0.1171, allocations: 308.5 kB / 472.7 MB, free: 8.531 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.1171, allocations: 29.7 kB / 472.7 MB, free: 8.496 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.1172, allocations: 243.9 kB / 473 MB, free: 8.254 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.95e-05/0.1173, allocations: 75 kB / 473.1 MB, free: 8.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.99e-05/0.1174, allocations: 65.94 kB / 473.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.1175, allocations: 342.8 kB / 473.5 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.1176, allocations: 68.62 kB / 473.5 MB, free: 7.699 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002087/0.1179, allocations: 205.5 kB / 473.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003572/0.1182, allocations: 290.1 kB / 474 MB, free: 7.102 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1182, allocations: 4 kB / 474 MB, free: 7.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004992/0.1187, allocations: 328.4 kB / 474.3 MB, free: 6.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.1188, allocations: 18.84 kB / 474.4 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.478e-06/0.1188, allocations: 4 kB / 474.4 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.1188, allocations: 4 kB / 474.4 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002721/0.1191, allocations: 75.84 kB / 474.4 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.769e-06/0.1191, allocations: 11.98 kB / 474.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001649/0.1193, allocations: 11.94 kB / 474.5 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.225e-05/0.1193, allocations: 23.98 kB / 474.5 MB, free: 6.629 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.0001452/0.1194, allocations: 169.8 kB / 474.6 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.721e-05/0.1195, allocations: 47.48 kB / 474.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003507/0.1199, allocations: 192.7 kB / 474.9 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1199, allocations: 3.938 kB / 474.9 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.289e-06/0.1199, allocations: 4 kB / 474.9 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.1199, allocations: 0 / 474.9 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007814/0.1207, allocations: 0.6123 MB / 475.5 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-06/0.1207, allocations: 8.031 kB / 475.5 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002196/0.1209, allocations: 47.91 kB / 475.6 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.1209, allocations: 4 kB / 475.6 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.121, allocations: 0 / 475.6 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.121, allocations: 4 kB / 475.6 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.121, allocations: 0 / 475.6 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004974/0.1215, allocations: 451.9 kB / 476 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.84e-05/0.1216, allocations: 104.7 kB / 476.1 MB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.785e-05/0.1216, allocations: 8 kB / 476.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001782/0.1218, allocations: 12.03 kB / 476.1 MB, free: 4.863 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.1218, allocations: 7.984 kB / 476.1 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.1218, allocations: 8 kB / 476.1 MB, free: 4.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001772/0.122, allocations: 219.1 kB / 476.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.122, allocations: 0 / 476.4 MB, free: 4.633 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00036/0.1224, allocations: 75.94 kB / 476.4 MB, free: 4.559 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 8.292e-05/0.1225, allocations: 111.1 kB / 476.5 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003561/0.1228, allocations: 196.6 kB / 476.7 MB, free: 4.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.1229, allocations: 4 kB / 476.7 MB, free: 4.246 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001429/0.123, allocations: 78.5 kB / 476.8 MB, free: 4.172 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005432/0.1236, allocations: 99.12 kB / 476.9 MB, free: 4.082 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.1248, allocations: 0.8813 MB / 477.8 MB, free: 3.164 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003201/0.1251, allocations: 0.8146 MB / 478.6 MB, free: 2.324 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001462/0.1253, allocations: 51.25 kB / 478.7 MB, free: 2.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.429e-05/0.1253, allocations: 27.44 kB / 478.7 MB, free: 2.242 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1253, allocations: 3.938 kB / 478.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of Templates: time 0.005993/0.1313, allocations: 3.393 MB / 482.1 MB, free: 14.89 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 -s gbode -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