Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.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.BLDCcharSpeed,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.BLDCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed,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.BLDCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 98.64 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.001478/0.001478, allocations: 194.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.362/1.362, allocations: 222.9 MB / 241.1 MB, free: 15.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1799/0.1799, allocations: 38.04 MB / 329.3 MB, free: 9.062 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 63.69 kB / 398.1 MB, free: 34.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.115, allocations: 58.06 MB / 456.2 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008497/0.1235, allocations: 7.168 MB / 463.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00465/0.1282, allocations: 2.934 MB / 466.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007475/0.129, allocations: 47.69 kB / 466.3 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001211/0.1302, allocations: 306.5 kB / 466.6 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001441/0.1317, allocations: 0.5369 MB / 467.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006829/0.1324, allocations: 247.7 kB / 467.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001848/0.1343, allocations: 1.629 MB / 469 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001066/0.1353, allocations: 0.7036 MB / 469.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007205/0.1361, allocations: 410.3 kB / 470.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000862/0.1369, allocations: 0.5372 MB / 470.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001457/0.1371, allocations: 52 kB / 470.7 MB, free: 9.918 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005539/0.1377, allocations: 283.5 kB / 471 MB, free: 9.641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003087/0.138, allocations: 311.1 kB / 471.3 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004177/0.1384, allocations: 414 kB / 471.7 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001135/0.1396, allocations: 1.316 MB / 473 MB, free: 7.609 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.1396, allocations: 4 kB / 473 MB, free: 7.605 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1396, allocations: 0 / 473 MB, free: 7.605 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.907e-06/0.1396, allocations: 0 / 473 MB, free: 7.605 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: 180 * Number of variables: 180 Notification: Performance of Generate backend data structure: time 0.002031/0.1416, allocations: 1.137 MB / 474.2 MB, free: 6.418 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.1417, allocations: 12.03 kB / 474.2 MB, free: 6.406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006378/0.1423, allocations: 135.8 kB / 474.3 MB, free: 6.273 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001015/0.1433, allocations: 0.6593 MB / 475 MB, free: 5.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.634e-05/0.1435, allocations: 83.62 kB / 475 MB, free: 5.484 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/0.1436, allocations: 64 kB / 475.1 MB, free: 5.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001378/0.145, allocations: 0.953 MB / 476.1 MB, free: 4.422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.752e-05/0.145, allocations: 11.92 kB / 476.1 MB, free: 4.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.75e-05/0.1451, allocations: 24 kB / 476.1 MB, free: 4.387 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.238e-05/0.1452, allocations: 61.3 kB / 476.2 MB, free: 4.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001248/0.1464, allocations: 0.778 MB / 476.9 MB, free: 3.551 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004648/0.1511, allocations: 3.871 MB / 480.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007685/0.1519, allocations: 0.5167 MB / 481.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004045/0.1523, allocations: 234.5 kB / 481.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-05/0.1523, allocations: 11.98 kB / 481.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.1524, allocations: 38.56 kB / 481.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.154e-06/0.1524, allocations: 0 / 481.6 MB, free: 14.6 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.01093/0.1633, allocations: 3.742 MB / 485.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.031e-05/0.1634, allocations: 111.2 kB / 485.4 MB, free: 10.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007016/0.1641, allocations: 0.5261 MB / 486 MB, free: 10.03 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.327e-05/0.1642, allocations: 33.7 kB / 486 MB, free: 9.988 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002725/0.1645, allocations: 395 kB / 486.4 MB, free: 9.594 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001532/0.1646, allocations: 189.3 kB / 486.6 MB, free: 9.406 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001873/0.1648, allocations: 134.5 kB / 486.7 MB, free: 9.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.165, allocations: 366.8 kB / 487.1 MB, free: 8.902 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004407/0.1654, allocations: 285.9 kB / 487.3 MB, free: 8.621 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005901/0.166, allocations: 0.5072 MB / 487.9 MB, free: 8.004 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.1671, allocations: 0.8481 MB / 488.7 MB, free: 7.055 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.1672, allocations: 4 kB / 488.7 MB, free: 7.051 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003294/0.1705, allocations: 1.453 MB / 490.2 MB, free: 5.543 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.809e-05/0.1705, allocations: 11.98 kB / 490.2 MB, free: 5.531 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.1705, allocations: 8 kB / 490.2 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0016/0.1721, allocations: 459.1 kB / 490.6 MB, free: 5.062 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004483/0.1726, allocations: 111.8 kB / 490.7 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01053/0.1831, allocations: 8.444 MB / 499.2 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006359/0.1838, allocations: 31.98 kB / 499.2 MB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.668e-05/0.1839, allocations: 28 kB / 499.2 MB, free: 11.91 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (2,9,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0004648/0.1843, allocations: 314.4 kB / 499.5 MB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.1845, allocations: 59.25 kB / 499.6 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003129/0.1876, allocations: 1.299 MB / 0.4892 GB, free: 10.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.784e-06/0.1876, allocations: 8 kB / 0.4892 GB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.1877, allocations: 4 kB / 0.4892 GB, free: 10.17 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.579e-05/0.1877, allocations: 3.984 kB / 0.4892 GB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004483/0.1922, allocations: 2.249 MB / 0.4914 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.1922, allocations: 0 / 0.4914 GB, free: 7.801 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003466/0.1925, allocations: 63.89 kB / 0.4914 GB, free: 7.738 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001415/0.194, allocations: 435 kB / 0.4918 GB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.825e-05/0.194, allocations: 12 kB / 0.4919 GB, free: 7.289 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009829/0.2039, allocations: 8.169 MB / 0.4998 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.2039, allocations: 4.031 kB / 0.4998 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003971/0.2079, allocations: 1.859 MB / 0.5017 GB, free: 12.63 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003947/0.2083, allocations: 196.3 kB / 0.5018 GB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001412/0.2085, allocations: 16 kB / 0.5019 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004558/0.2089, allocations: 19.98 kB / 0.5019 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000226/0.2092, allocations: 60.48 kB / 0.5019 GB, free: 12.33 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.442e-05/0.2092, allocations: 19.98 kB / 0.502 GB, free: 12.31 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005588/0.2098, allocations: 366.8 kB / 0.5023 GB, free: 11.95 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.432e-06/0.2098, allocations: 4.109 kB / 0.5023 GB, free: 11.95 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001216/0.211, allocations: 251.9 kB / 0.5025 GB, free: 11.7 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (machine.rotor.w,machine.motor.phi_el) * 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 (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003456/0.2114, allocations: 140.6 kB / 0.5027 GB, free: 11.56 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002391/0.2138, allocations: 1.338 MB / 0.504 GB, free: 10.16 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.2138, allocations: 4.125 kB / 0.504 GB, free: 10.16 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00147/0.2153, allocations: 0.9625 MB / 0.5049 GB, free: 9.148 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001065/0.2163, allocations: 162.4 kB / 0.5051 GB, free: 8.992 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003371/0.2197, allocations: 2.006 MB / 0.507 GB, free: 6.957 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008082/0.2206, allocations: 1.052 MB / 0.5081 GB, free: 5.875 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004426/0.221, allocations: 109.7 kB / 0.5082 GB, free: 5.766 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001376/0.2212, allocations: 47.42 kB / 0.5082 GB, free: 5.719 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.2212, allocations: 3.938 kB / 0.5082 GB, free: 5.715 MB / 398.1 MB Notification: Performance of Templates: time 0.2151/0.4363, allocations: 14.36 MB / 0.5222 GB, free: 67.17 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches