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.001569/0.001569, allocations: 109.5 kB / 16.92 MB, free: 5.777 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.001733/0.001733, allocations: 191.3 kB / 17.85 MB, free: 5.168 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.386/1.386, 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.1706/0.1706, allocations: 38.04 MB / 329.7 MB, free: 8.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 64.59 kB / 398.8 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1065, allocations: 58.06 MB / 456.9 MB, free: 8.066 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.0082/0.1147, allocations: 6.332 MB / 463.2 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004385/0.1192, allocations: 2.672 MB / 465.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007743/0.12, allocations: 27.81 kB / 465.9 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001431/0.1214, allocations: 334.1 kB / 466.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001947/0.1234, allocations: 0.587 MB / 466.8 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008901/0.1243, allocations: 287.5 kB / 467.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001845/0.1261, allocations: 1.192 MB / 468.3 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001313/0.1275, allocations: 0.8806 MB / 469.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008531/0.1283, allocations: 486.3 kB / 469.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009473/0.1293, allocations: 0.5294 MB / 470.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002647/0.1296, allocations: 88 kB / 470.3 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007901/0.1304, allocations: 327.5 kB / 470.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004727/0.1308, allocations: 335.2 kB / 470.9 MB, free: 9.977 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000782/0.1316, allocations: 461.9 kB / 471.4 MB, free: 9.523 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001656/0.1333, allocations: 1.359 MB / 472.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.289e-06/0.1333, allocations: 0 / 472.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1333, allocations: 0 / 472.7 MB, free: 8.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.551e-05/0.1334, allocations: 0 / 472.7 MB, free: 8.16 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.002977/0.1364, allocations: 1.145 MB / 473.9 MB, free: 6.961 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.1364, allocations: 8.031 kB / 473.9 MB, free: 6.953 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007422/0.1372, allocations: 135.8 kB / 474 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001225/0.1384, allocations: 0.6631 MB / 474.7 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001215/0.1385, allocations: 79.64 kB / 474.7 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/0.1387, allocations: 71.94 kB / 474.8 MB, free: 5.961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/0.1403, allocations: 0.9609 MB / 475.8 MB, free: 4.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.191e-05/0.1403, allocations: 7.938 kB / 475.8 MB, free: 4.949 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.56e-05/0.1404, allocations: 31.98 kB / 475.8 MB, free: 4.918 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001004/0.1405, allocations: 53.28 kB / 475.9 MB, free: 4.867 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001334/0.1419, allocations: 0.7741 MB / 476.6 MB, free: 4.094 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.005125/0.147, allocations: 3.867 MB / 480.5 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008098/0.1478, allocations: 0.5168 MB / 481 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004174/0.1482, allocations: 242.5 kB / 481.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.966e-05/0.1483, allocations: 4 kB / 481.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.604e-05/0.1483, allocations: 38.56 kB / 481.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.444e-06/0.1483, allocations: 0 / 481.3 MB, free: 15.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.01093/0.1593, allocations: 3.743 MB / 485 MB, free: 11.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.596e-05/0.1594, allocations: 119.2 kB / 485.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006636/0.16, allocations: 0.5183 MB / 485.7 MB, free: 10.56 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.45e-05/0.1601, allocations: 41.69 kB / 485.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002549/0.1604, allocations: 399 kB / 486.1 MB, free: 10.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/0.1605, allocations: 185.3 kB / 486.3 MB, free: 9.938 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000199/0.1607, allocations: 130.6 kB / 486.4 MB, free: 9.805 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.1609, allocations: 374.8 kB / 486.8 MB, free: 9.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004665/0.1613, allocations: 281.8 kB / 487.1 MB, free: 9.152 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005877/0.1619, allocations: 0.4955 MB / 487.6 MB, free: 8.551 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001139/0.1631, allocations: 0.852 MB / 488.4 MB, free: 7.594 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.1631, allocations: 4 kB / 488.4 MB, free: 7.59 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00325/0.1664, allocations: 1.449 MB / 489.9 MB, free: 6.086 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.1664, allocations: 10.34 kB / 489.9 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.1664, allocations: 8 kB / 489.9 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001542/0.168, allocations: 463.2 kB / 490.3 MB, free: 5.609 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004339/0.1684, allocations: 115.8 kB / 490.4 MB, free: 5.496 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01026/0.1787, allocations: 9.145 MB / 499.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00057/0.1793, allocations: 27.98 kB / 499.6 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.305e-05/0.1793, allocations: 28 kB / 499.6 MB, free: 11.73 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.000429/0.1798, allocations: 314.4 kB / 499.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.1799, allocations: 67.19 kB / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003094/0.183, allocations: 1.303 MB / 0.4896 GB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-05/0.1831, allocations: 4 kB / 0.4896 GB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.689e-06/0.1831, allocations: 4 kB / 0.4896 GB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/0.1831, allocations: 7.984 kB / 0.4896 GB, free: 9.965 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004322/0.1874, allocations: 2.245 MB / 0.4918 GB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.662e-06/0.1875, allocations: 4 kB / 0.4918 GB, free: 7.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000327/0.1878, allocations: 59.95 kB / 0.4918 GB, free: 7.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001369/0.1892, allocations: 439.1 kB / 0.4923 GB, free: 7.105 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.741e-05/0.1892, allocations: 12 kB / 0.4923 GB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0095/0.1987, allocations: 8.876 MB / 0.5009 GB, free: 13.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/0.1988, allocations: 7.969 kB / 0.5009 GB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00377/0.2025, allocations: 1.836 MB / 0.5027 GB, free: 11.73 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003229/0.2029, allocations: 196.3 kB / 0.5029 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.203, allocations: 16.06 kB / 0.5029 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004463/0.2035, allocations: 23.98 kB / 0.503 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.2036, allocations: 56.56 kB / 0.503 GB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.963e-05/0.2037, allocations: 23.88 kB / 0.503 GB, free: 11.41 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005373/0.2042, allocations: 366.8 kB / 0.5034 GB, free: 11.05 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2042, allocations: 0 / 0.5034 GB, free: 11.05 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001099/0.2054, allocations: 252 kB / 0.5036 GB, free: 10.8 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.0003562/0.2057, allocations: 145.1 kB / 0.5038 GB, free: 10.65 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00244/0.2082, allocations: 1.404 MB / 0.5051 GB, free: 9.188 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.2082, allocations: 0 / 0.5051 GB, free: 9.188 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001402/0.2096, allocations: 0.9748 MB / 0.5061 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009562/0.2106, allocations: 174.3 kB / 0.5063 GB, free: 7.996 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002855/0.2134, allocations: 1.701 MB / 0.5079 GB, free: 6.262 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007799/0.2142, allocations: 1.04 MB / 0.5089 GB, free: 5.191 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003848/0.2146, allocations: 117.7 kB / 0.509 GB, free: 5.074 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.2147, allocations: 51.42 kB / 0.5091 GB, free: 5.023 MB / 398.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2147, allocations: 0 / 0.5091 GB, free: 5.023 MB / 398.1 MB Notification: Performance of Templates: time 0.2162/0.431, allocations: 14.86 MB / 0.5236 GB, free: 67.67 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