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.00141/0.00141, 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.001601/0.001601, allocations: 187 kB / 18.63 MB, free: 4.512 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.5/1.5, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1892/0.1892, allocations: 38.03 MB / 330.5 MB, free: 8.789 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001582, allocations: 60.55 kB / 400.3 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1506, allocations: 58.06 MB / 458.3 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.007073/0.1577, allocations: 4.805 MB / 463.1 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002584/0.1603, allocations: 1.484 MB / 464.6 MB, free: 1.023 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002807/0.1606, allocations: 15.94 kB / 464.6 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003907/0.161, allocations: 115.1 kB / 464.7 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006303/0.1617, allocations: 262.4 kB / 465 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003282/0.1621, allocations: 139.8 kB / 465.1 MB, free: 0.5 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006798/0.1628, allocations: 0.5876 MB / 465.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004557/0.1632, allocations: 382.7 kB / 466.1 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002919/0.1635, allocations: 239 kB / 466.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003387/0.1639, allocations: 239 kB / 466.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.566e-05/0.1639, allocations: 40 kB / 466.6 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.319e-05/0.164, allocations: 40 kB / 466.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001408/0.1642, allocations: 123.6 kB / 466.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002505/0.1644, allocations: 226.9 kB / 467 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005454/0.165, allocations: 0.4984 MB / 467.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.165, allocations: 0 / 467.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.165, allocations: 4 kB / 467.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.165, allocations: 0 / 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.001284/0.1663, allocations: 0.7108 MB / 468.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.1664, allocations: 8.031 kB / 468.2 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.572e-05/0.1665, allocations: 56.31 kB / 468.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006292/0.1671, allocations: 416.1 kB / 468.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.686e-05/0.1672, allocations: 58.64 kB / 468.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.548e-05/0.1673, allocations: 36 kB / 468.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00065/0.1679, allocations: 432.1 kB / 469.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.168, allocations: 0 / 469.2 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.827e-05/0.168, allocations: 19.98 kB / 469.2 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.168, allocations: 8 kB / 469.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005045/0.1685, allocations: 277.9 kB / 469.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00209/0.1706, allocations: 1.83 MB / 471.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000332/0.171, allocations: 183.7 kB / 471.5 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.1711, allocations: 70.55 kB / 471.6 MB, free: 9.777 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.805e-05/0.1712, allocations: 4 kB / 471.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.1712, allocations: 38.5 kB / 471.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=18): time 1.964e-06/0.1712, allocations: 0 / 471.6 MB, free: 9.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001303/0.1725, allocations: 0.7059 MB / 472.3 MB, free: 8.965 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.671e-05/0.1726, allocations: 106.8 kB / 472.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003316/0.1729, allocations: 312.5 kB / 472.7 MB, free: 8.523 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.173, allocations: 25.7 kB / 472.7 MB, free: 8.492 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001614/0.1731, allocations: 247.9 kB / 473 MB, free: 8.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.021e-05/0.1732, allocations: 67.02 kB / 473 MB, free: 8.18 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.597e-05/0.1733, allocations: 69.92 kB / 473.1 MB, free: 8.105 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1735, allocations: 342.8 kB / 473.5 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001691/0.1736, allocations: 68.61 kB / 473.5 MB, free: 7.695 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002636/0.1739, allocations: 201.5 kB / 473.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004264/0.1744, allocations: 294.3 kB / 474 MB, free: 7.098 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1744, allocations: 4 kB / 474 MB, free: 7.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0005702/0.1749, allocations: 327.8 kB / 474.3 MB, free: 6.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.496e-05/0.175, allocations: 19.31 kB / 474.3 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.188e-06/0.175, allocations: 4 kB / 474.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.175, allocations: 4 kB / 474.4 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002946/0.1753, allocations: 83.83 kB / 474.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.1753, allocations: 8 kB / 474.4 MB, free: 6.656 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001755/0.1755, allocations: 19.94 kB / 474.5 MB, free: 6.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.616e-05/0.1756, allocations: 12 kB / 474.5 MB, free: 6.625 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.0001933/0.1758, allocations: 181.7 kB / 474.7 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.152e-05/0.1758, allocations: 39.56 kB / 474.7 MB, free: 6.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004038/0.1762, allocations: 192.7 kB / 474.9 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1763, allocations: 4 kB / 474.9 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.1763, allocations: 0 / 474.9 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.683e-06/0.1763, allocations: 7.922 kB / 474.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009223/0.1772, allocations: 0.6162 MB / 475.5 MB, free: 5.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1772, allocations: 4.031 kB / 475.5 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002328/0.1775, allocations: 39.92 kB / 475.5 MB, free: 5.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.869e-06/0.1775, allocations: 4 kB / 475.6 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.152e-05/0.1775, allocations: 4 kB / 475.6 MB, free: 5.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.282e-06/0.1775, allocations: 4 kB / 475.6 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1775, allocations: 0 / 475.6 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006142/0.1781, allocations: 447.9 kB / 476 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.1783, allocations: 112.7 kB / 476.1 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.134e-05/0.1783, allocations: 4 kB / 476.1 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.1785, allocations: 8 kB / 476.1 MB, free: 4.859 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.358e-05/0.1786, allocations: 11.98 kB / 476.1 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.8e-05/0.1786, allocations: 11.98 kB / 476.1 MB, free: 4.836 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002064/0.1788, allocations: 219.1 kB / 476.4 MB, free: 4.621 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1788, allocations: 0 / 476.4 MB, free: 4.621 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004057/0.1792, allocations: 75.94 kB / 476.4 MB, free: 4.547 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.0001316/0.1794, allocations: 99.19 kB / 476.5 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004296/0.1798, allocations: 204.5 kB / 476.7 MB, free: 4.242 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1798, allocations: 0 / 476.7 MB, free: 4.242 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001574/0.18, allocations: 75.91 kB / 476.8 MB, free: 4.168 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006494/0.1806, allocations: 102.4 kB / 476.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001546/0.1822, allocations: 0.8891 MB / 477.8 MB, free: 3.152 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004644/0.1827, allocations: 0.8107 MB / 478.6 MB, free: 2.316 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000183/0.1829, allocations: 51.25 kB / 478.7 MB, free: 2.262 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.314e-05/0.1829, allocations: 27.44 kB / 478.7 MB, free: 2.234 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.183, allocations: 0 / 478.7 MB, free: 2.234 MB / 350.1 MB Notification: Performance of Templates: time 0.00746/0.1904, allocations: 3.409 MB / 482.1 MB, free: 14.88 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 cvode -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