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.001126/0.001126, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001333/0.001333, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.291/1.291, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.169/0.169, allocations: 38.04 MB / 329.7 MB, free: 8.82 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001242/0.001242, allocations: 65.95 kB / 398.8 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09979/0.101, allocations: 58.07 MB / 456.9 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.00612/0.1072, allocations: 4.794 MB / 461.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002004/0.1092, allocations: 1.476 MB / 463.1 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002181/0.1095, allocations: 23.81 kB / 463.2 MB, free: 1.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003683/0.1099, allocations: 107.2 kB / 463.3 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006438/0.1106, allocations: 274.4 kB / 463.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003085/0.1109, allocations: 127.8 kB / 463.7 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005925/0.1115, allocations: 0.5877 MB / 464.2 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004237/0.1119, allocations: 402.5 kB / 464.6 MB, free: 248 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002481/0.1122, allocations: 231.2 kB / 464.9 MB, free: 16 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003046/0.1125, allocations: 231 kB / 465.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.47e-05/0.1126, allocations: 40 kB / 465.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.7e-05/0.1126, allocations: 40 kB / 465.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001151/0.1128, allocations: 127.6 kB / 465.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001895/0.113, allocations: 226.9 kB / 465.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00041/0.1134, allocations: 498.3 kB / 466 MB, free: 14.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1134, allocations: 4 kB / 466 MB, free: 14.87 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1134, allocations: 0 / 466 MB, free: 14.87 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.432e-06/0.1134, allocations: 3.938 kB / 466 MB, free: 14.87 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.001057/0.1145, allocations: 0.7108 MB / 466.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.075e-05/0.1145, allocations: 8.031 kB / 466.7 MB, free: 14.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.438e-05/0.1146, allocations: 48.38 kB / 466.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005325/0.1151, allocations: 396 kB / 467.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.688e-05/0.1152, allocations: 58.64 kB / 467.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.655e-05/0.1153, allocations: 36 kB / 467.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005909/0.1159, allocations: 432.1 kB / 467.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.716e-05/0.1159, allocations: 7.938 kB / 467.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/0.116, allocations: 16 kB / 467.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.116, allocations: 12 kB / 467.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004708/0.1165, allocations: 277.9 kB / 468 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001972/0.1184, allocations: 1.834 MB / 469.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003212/0.1188, allocations: 179.5 kB / 470 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001421/0.1189, allocations: 74.67 kB / 470.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.119, allocations: 3.984 kB / 470.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.119, allocations: 42.56 kB / 470.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.533e-06/0.119, allocations: 0 / 470.1 MB, free: 10.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001242/0.1202, allocations: 0.7059 MB / 470.8 MB, free: 9.707 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/0.1203, allocations: 111 kB / 470.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003383/0.1207, allocations: 312.5 kB / 471.2 MB, free: 9.262 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.019e-05/0.1207, allocations: 29.7 kB / 471.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001933/0.1209, allocations: 243.6 kB / 471.5 MB, free: 8.984 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.066e-05/0.121, allocations: 71 kB / 471.6 MB, free: 8.914 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.708e-05/0.1211, allocations: 65.88 kB / 471.6 MB, free: 8.844 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1212, allocations: 346.8 kB / 472 MB, free: 8.496 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.1214, allocations: 72.61 kB / 472 MB, free: 8.426 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002473/0.1216, allocations: 201.5 kB / 472.2 MB, free: 8.172 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005057/0.1221, allocations: 290.3 kB / 472.5 MB, free: 7.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.1221, allocations: 0 / 472.5 MB, free: 7.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000499/0.1226, allocations: 332 kB / 472.8 MB, free: 7.504 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.1227, allocations: 19.36 kB / 472.9 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.1227, allocations: 4 kB / 472.9 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.1227, allocations: 4 kB / 472.9 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002729/0.123, allocations: 75.91 kB / 472.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.467e-05/0.123, allocations: 12.41 kB / 473 MB, free: 7.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001722/0.1232, allocations: 19.92 kB / 473 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.403e-05/0.1232, allocations: 16 kB / 473 MB, free: 7.359 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.0001745/0.1234, allocations: 177.7 kB / 473.2 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.404e-05/0.1235, allocations: 35.56 kB / 473.2 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003622/0.1239, allocations: 200.6 kB / 473.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.1239, allocations: 0 / 473.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.1239, allocations: 4 kB / 473.4 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.1239, allocations: 4 kB / 473.4 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008239/0.1247, allocations: 0.6162 MB / 474 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1247, allocations: 0 / 474 MB, free: 6.254 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002162/0.125, allocations: 35.98 kB / 474.1 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.967e-06/0.125, allocations: 4 kB / 474.1 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.754e-05/0.125, allocations: 7.984 kB / 474.1 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.125, allocations: 4 kB / 474.1 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.125, allocations: 7.969 kB / 474.1 MB, free: 6.195 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005434/0.1256, allocations: 442.6 kB / 474.5 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.769e-05/0.1256, allocations: 108.7 kB / 474.6 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.27e-05/0.1257, allocations: 8 kB / 474.6 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000172/0.1259, allocations: 12.03 kB / 474.6 MB, free: 5.598 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.683e-05/0.1259, allocations: 19.83 kB / 474.7 MB, free: 5.578 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.126, allocations: 8 kB / 474.7 MB, free: 5.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002/0.1262, allocations: 215.1 kB / 474.9 MB, free: 5.359 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1262, allocations: 0 / 474.9 MB, free: 5.359 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000391/0.1266, allocations: 75.94 kB / 475 MB, free: 5.285 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.0001068/0.1267, allocations: 103.2 kB / 475.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004057/0.1271, allocations: 203.7 kB / 475.3 MB, free: 4.977 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1271, allocations: 0 / 475.3 MB, free: 4.977 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001519/0.1273, allocations: 76.97 kB / 475.3 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.0006475/0.1279, allocations: 117.8 kB / 475.4 MB, free: 4.801 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00146/0.1294, allocations: 0.9007 MB / 476.3 MB, free: 3.863 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000509/0.1299, allocations: 0.8107 MB / 477.2 MB, free: 3.027 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001794/0.1301, allocations: 47.27 kB / 477.2 MB, free: 2.977 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.779e-05/0.1302, allocations: 31.44 kB / 477.2 MB, free: 2.945 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1302, allocations: 0 / 477.2 MB, free: 2.945 MB / 350.1 MB Notification: Performance of Templates: time 0.007115/0.1373, allocations: 3.392 MB / 480.6 MB, free: 15.6 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/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