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.001576/0.001576, allocations: 114.1 kB / 17.69 MB, free: 5.309 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.001805/0.001805, allocations: 187 kB / 18.63 MB, free: 4.379 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.351/1.351, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1746/0.1746, allocations: 38.05 MB / 330.5 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 55.83 kB / 400.3 MB, free: 33.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09556/0.09681, allocations: 58.06 MB / 458.3 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.007786/0.1046, allocations: 6.329 MB / 464.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004053/0.1087, allocations: 2.676 MB / 467.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003129/0.1091, allocations: 31.81 kB / 467.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009404/0.11, allocations: 334.1 kB / 467.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001082/0.1111, allocations: 0.5909 MB / 468.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005423/0.1117, allocations: 279.5 kB / 468.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001259/0.113, allocations: 1.202 MB / 469.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009396/0.1139, allocations: 0.8689 MB / 470.6 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005108/0.1144, allocations: 494.3 kB / 471.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006497/0.1151, allocations: 0.5255 MB / 471.6 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001046/0.1152, allocations: 84 kB / 471.7 MB, free: 9.875 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004577/0.1157, allocations: 331.5 kB / 472 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002946/0.116, allocations: 335.1 kB / 472.4 MB, free: 9.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004135/0.1164, allocations: 469.9 kB / 472.8 MB, free: 8.762 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001142/0.1176, allocations: 1.367 MB / 474.2 MB, free: 7.391 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1176, allocations: 4 kB / 474.2 MB, free: 7.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1176, allocations: 0 / 474.2 MB, free: 7.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.1176, allocations: 0 / 474.2 MB, free: 7.387 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.001982/0.1196, allocations: 1.137 MB / 475.3 MB, free: 6.195 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.1196, allocations: 12.03 kB / 475.3 MB, free: 6.184 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006084/0.1202, allocations: 131.8 kB / 475.5 MB, free: 6.055 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001151/0.1214, allocations: 0.6906 MB / 476.2 MB, free: 5.324 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001054/0.1215, allocations: 83.58 kB / 476.2 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001138/0.1216, allocations: 75.92 kB / 476.3 MB, free: 5.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/0.123, allocations: 0.9569 MB / 477.3 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.413e-05/0.123, allocations: 0 / 477.3 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.553e-05/0.1231, allocations: 35.98 kB / 477.3 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.246e-05/0.1232, allocations: 53.28 kB / 477.4 MB, free: 4.074 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001218/0.1244, allocations: 0.7818 MB / 478.1 MB, free: 3.293 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.004591/0.129, allocations: 3.848 MB / 482 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007795/0.1298, allocations: 0.5128 MB / 482.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004107/0.1302, allocations: 238.5 kB / 482.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.876e-05/0.1303, allocations: 4 kB / 482.7 MB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.065e-05/0.1303, allocations: 46.5 kB / 482.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.764e-06/0.1303, allocations: 0 / 482.8 MB, free: 14.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.01042/0.1407, allocations: 3.727 MB / 486.5 MB, free: 10.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.1408, allocations: 119.1 kB / 486.6 MB, free: 10.33 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005941/0.1414, allocations: 0.526 MB / 487.2 MB, free: 9.797 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.7e-05/0.1415, allocations: 41.73 kB / 487.2 MB, free: 9.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002464/0.1417, allocations: 399 kB / 487.6 MB, free: 9.355 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001496/0.1419, allocations: 189.3 kB / 487.8 MB, free: 9.168 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002076/0.1421, allocations: 130.6 kB / 487.9 MB, free: 9.035 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.1423, allocations: 366.8 kB / 488.3 MB, free: 8.668 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004917/0.1428, allocations: 281.8 kB / 488.5 MB, free: 8.391 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006736/0.1435, allocations: 0.5072 MB / 489 MB, free: 7.777 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00123/0.1447, allocations: 0.8442 MB / 489.9 MB, free: 6.828 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1447, allocations: 4 kB / 489.9 MB, free: 6.824 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003188/0.1479, allocations: 1.449 MB / 491.3 MB, free: 5.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.148, allocations: 8 kB / 491.3 MB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.148, allocations: 8 kB / 491.4 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001597/0.1496, allocations: 455.2 kB / 491.8 MB, free: 4.848 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004414/0.15, allocations: 111.8 kB / 491.9 MB, free: 4.738 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01039/0.1604, allocations: 9.142 MB / 0.4893 GB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005298/0.161, allocations: 31.98 kB / 0.4893 GB, free: 11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.878e-05/0.1611, allocations: 31.98 kB / 0.4894 GB, free: 10.96 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.0004897/0.1616, allocations: 314.6 kB / 0.4897 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001556/0.1617, allocations: 63.23 kB / 0.4897 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002977/0.1647, allocations: 1.299 MB / 0.491 GB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.906e-06/0.1647, allocations: 8 kB / 0.491 GB, free: 9.219 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.206e-06/0.1647, allocations: 4 kB / 0.491 GB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1648, allocations: 3.984 kB / 0.491 GB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00433/0.1691, allocations: 2.253 MB / 0.4932 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.1691, allocations: 0 / 0.4932 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000323/0.1694, allocations: 63.89 kB / 0.4933 GB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001302/0.1707, allocations: 427.1 kB / 0.4937 GB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.901e-05/0.1708, allocations: 15.98 kB / 0.4937 GB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00945/0.1803, allocations: 8.858 MB / 0.5023 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.1803, allocations: 0 / 0.5023 GB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003378/0.1837, allocations: 1.852 MB / 0.5042 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003074/0.184, allocations: 196.3 kB / 0.5043 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.808e-05/0.1841, allocations: 12 kB / 0.5044 GB, free: 10.76 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004039/0.1845, allocations: 19.98 kB / 0.5044 GB, free: 10.74 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.1847, allocations: 52.55 kB / 0.5044 GB, free: 10.69 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.206e-05/0.1847, allocations: 27.92 kB / 0.5045 GB, free: 10.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000412/0.1851, allocations: 366.8 kB / 0.5048 GB, free: 10.31 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1851, allocations: 0 / 0.5048 GB, free: 10.31 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009199/0.1861, allocations: 252 kB / 0.505 GB, free: 10.06 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.0002723/0.1863, allocations: 155.1 kB / 0.5052 GB, free: 9.902 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002097/0.1885, allocations: 1.346 MB / 0.5065 GB, free: 8.496 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.1885, allocations: 0 / 0.5065 GB, free: 8.496 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001274/0.1897, allocations: 0.9743 MB / 0.5075 GB, free: 7.469 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008809/0.1906, allocations: 179.9 kB / 0.5076 GB, free: 7.301 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002574/0.1932, allocations: 1.684 MB / 0.5093 GB, free: 5.578 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006768/0.1939, allocations: 1.048 MB / 0.5103 GB, free: 4.504 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003144/0.1942, allocations: 113.7 kB / 0.5104 GB, free: 4.391 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.1944, allocations: 43.44 kB / 0.5104 GB, free: 4.348 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1944, allocations: 0 / 0.5104 GB, free: 4.348 MB / 398.1 MB Notification: Performance of Templates: time 0.2304/0.4248, allocations: 14.87 MB / 0.525 GB, free: 67.6 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.mat","/var/lib/jenkins1/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