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.001263/0.001263, allocations: 97.33 kB / 16.5 MB, free: 6.641 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.001436/0.001437, allocations: 195.1 kB / 17.42 MB, free: 6.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.37/1.37, allocations: 222.9 MB / 241.1 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1776/0.1776, allocations: 38.04 MB / 329.3 MB, free: 9.066 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 66.53 kB / 398.1 MB, free: 34.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1344, allocations: 58.07 MB / 456.2 MB, free: 8.523 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.007123/0.1416, allocations: 5.43 MB / 461.6 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002587/0.1442, allocations: 1.679 MB / 463.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003049/0.1445, allocations: 31.81 kB / 463.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003748/0.1449, allocations: 95.34 kB / 463.4 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005852/0.1455, allocations: 234.8 kB / 463.6 MB, free: 1.02 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000329/0.1459, allocations: 127.8 kB / 463.8 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007794/0.1466, allocations: 0.7164 MB / 464.5 MB, free: 180 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004281/0.1471, allocations: 325.8 kB / 464.8 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002739/0.1474, allocations: 207 kB / 465 MB, free: 15.65 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003328/0.1477, allocations: 243 kB / 465.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.056e-05/0.1478, allocations: 24 kB / 465.3 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.852e-05/0.1479, allocations: 32 kB / 465.3 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001281/0.148, allocations: 111.6 kB / 465.4 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000208/0.1482, allocations: 211 kB / 465.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004304/0.1486, allocations: 494.4 kB / 466.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.1487, allocations: 7.938 kB / 466.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1487, allocations: 0 / 466.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.1487, allocations: 4 kB / 466.1 MB, free: 14.54 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.001253/0.1499, allocations: 0.703 MB / 466.8 MB, free: 13.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.15, allocations: 8.031 kB / 466.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.794e-05/0.1501, allocations: 48.38 kB / 466.9 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005555/0.1506, allocations: 396 kB / 467.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.712e-05/0.1508, allocations: 58.64 kB / 467.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.799e-05/0.1508, allocations: 36 kB / 467.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006659/0.1515, allocations: 436 kB / 467.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.1515, allocations: 4 kB / 467.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.651e-05/0.1516, allocations: 16 kB / 467.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.1516, allocations: 12 kB / 467.8 MB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004904/0.1521, allocations: 270 kB / 468.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002066/0.1542, allocations: 1.849 MB / 469.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003417/0.1545, allocations: 175.5 kB / 470.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001481/0.1547, allocations: 74.67 kB / 470.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.507e-05/0.1547, allocations: 7.984 kB / 470.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.1547, allocations: 38.56 kB / 470.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.653e-06/0.1547, allocations: 0 / 470.2 MB, free: 10.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.00135/0.1561, allocations: 0.7012 MB / 470.9 MB, free: 9.387 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.547e-05/0.1562, allocations: 111 kB / 471 MB, free: 9.254 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00031/0.1565, allocations: 316.5 kB / 471.3 MB, free: 8.938 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.277e-05/0.1565, allocations: 29.7 kB / 471.3 MB, free: 8.902 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.1567, allocations: 239.6 kB / 471.6 MB, free: 8.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.119e-05/0.1567, allocations: 67.02 kB / 471.6 MB, free: 8.598 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.742e-05/0.1568, allocations: 65.92 kB / 471.7 MB, free: 8.527 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.157, allocations: 342.8 kB / 472 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001669/0.1571, allocations: 76.55 kB / 472.1 MB, free: 8.109 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002373/0.1574, allocations: 193.5 kB / 472.3 MB, free: 7.863 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004871/0.1579, allocations: 299.2 kB / 472.6 MB, free: 7.516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.1579, allocations: 0 / 472.6 MB, free: 7.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005391/0.1584, allocations: 328.8 kB / 472.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.1585, allocations: 11.94 kB / 472.9 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.1585, allocations: 4 kB / 472.9 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.701e-05/0.1585, allocations: 7.938 kB / 472.9 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002844/0.1588, allocations: 79.89 kB / 473 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.504e-05/0.1588, allocations: 12.44 kB / 473 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001677/0.159, allocations: 15.94 kB / 473 MB, free: 7.059 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.402e-05/0.159, allocations: 16 kB / 473.1 MB, free: 7.043 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.0001802/0.1592, allocations: 177.8 kB / 473.2 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.949e-05/0.1593, allocations: 35.56 kB / 473.3 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003764/0.1597, allocations: 199 kB / 473.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.1597, allocations: 0 / 473.5 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.234e-06/0.1597, allocations: 4 kB / 473.5 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.1597, allocations: 7.984 kB / 473.5 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009119/0.1606, allocations: 0.6162 MB / 474.1 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1606, allocations: 0 / 474.1 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002355/0.1609, allocations: 43.92 kB / 474.1 MB, free: 5.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.64e-06/0.1609, allocations: 4 kB / 474.1 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/0.1609, allocations: 4 kB / 474.1 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.1609, allocations: 4.031 kB / 474.1 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1609, allocations: 4 kB / 474.1 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005683/0.1615, allocations: 443.9 kB / 474.6 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.002e-05/0.1616, allocations: 112.7 kB / 474.7 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.263e-05/0.1617, allocations: 8 kB / 474.7 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001824/0.1618, allocations: 11.94 kB / 474.7 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.847e-05/0.1619, allocations: 16.06 kB / 474.7 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.528e-05/0.1619, allocations: 11.98 kB / 474.7 MB, free: 5.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001963/0.1621, allocations: 215.1 kB / 475 MB, free: 5.039 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1621, allocations: 0 / 475 MB, free: 5.039 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003798/0.1625, allocations: 75.94 kB / 475 MB, free: 4.965 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.0001083/0.1626, allocations: 99.25 kB / 475.1 MB, free: 4.855 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003814/0.163, allocations: 191.7 kB / 475.3 MB, free: 4.668 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.163, allocations: 0 / 475.3 MB, free: 4.668 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001568/0.1632, allocations: 83.38 kB / 475.4 MB, free: 4.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000637/0.1638, allocations: 96.19 kB / 475.5 MB, free: 4.496 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001722/0.1656, allocations: 1.031 MB / 476.5 MB, free: 3.426 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000442/0.166, allocations: 0.8149 MB / 477.3 MB, free: 2.586 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002199/0.1663, allocations: 47.25 kB / 477.4 MB, free: 2.539 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.913e-05/0.1663, allocations: 31.38 kB / 477.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of SimCode: time 9.21e-07/0.1663, allocations: 0 / 477.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of Templates: time 0.006924/0.1733, allocations: 3.222 MB / 480.6 MB, free: 15.33 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