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.001355/0.001355, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001377/0.001377, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.335/1.335, allocations: 222.9 MB / 242.2 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.1833/0.1833, allocations: 38.03 MB / 330.4 MB, free: 8.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 69.75 kB / 399.5 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08935/0.09081, allocations: 58.06 MB / 457.5 MB, free: 8.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.008483/0.09934, allocations: 6.329 MB / 463.9 MB, free: 1.691 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004233/0.1036, allocations: 2.676 MB / 466.5 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005543/0.1042, allocations: 23.88 kB / 466.6 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001295/0.1055, allocations: 338 kB / 466.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001542/0.1071, allocations: 0.5909 MB / 467.5 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007662/0.1079, allocations: 283.5 kB / 467.8 MB, free: 13.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001607/0.1095, allocations: 1.196 MB / 469 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001239/0.1107, allocations: 0.8767 MB / 469.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008482/0.1116, allocations: 486.4 kB / 470.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009186/0.1125, allocations: 0.5255 MB / 470.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002105/0.1128, allocations: 88 kB / 470.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006837/0.1135, allocations: 331.5 kB / 471.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004182/0.1139, allocations: 335.2 kB / 471.6 MB, free: 9.961 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007083/0.1146, allocations: 462 kB / 472 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001555/0.1162, allocations: 1.359 MB / 473.4 MB, free: 8.145 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.1162, allocations: 0 / 473.4 MB, free: 8.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1162, allocations: 0 / 473.4 MB, free: 8.145 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.117e-05/0.1162, allocations: 0 / 473.4 MB, free: 8.145 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.002596/0.1188, allocations: 1.148 MB / 474.5 MB, free: 6.945 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.1189, allocations: 8.031 kB / 474.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007261/0.1196, allocations: 135.8 kB / 474.7 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001172/0.1208, allocations: 0.6632 MB / 475.3 MB, free: 6.102 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001123/0.1209, allocations: 83.62 kB / 475.4 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.1211, allocations: 68 kB / 475.5 MB, free: 5.945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001571/0.1226, allocations: 0.953 MB / 476.4 MB, free: 4.949 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.085e-05/0.1227, allocations: 4 kB / 476.4 MB, free: 4.945 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.25e-05/0.1228, allocations: 31.98 kB / 476.5 MB, free: 4.914 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001024/0.1229, allocations: 53.28 kB / 476.5 MB, free: 4.863 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001411/0.1243, allocations: 0.7818 MB / 477.3 MB, free: 4.082 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.005044/0.1294, allocations: 3.867 MB / 481.2 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008382/0.1302, allocations: 0.5238 MB / 481.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000423/0.1306, allocations: 234.5 kB / 481.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.701e-05/0.1307, allocations: 8 kB / 481.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.1307, allocations: 42.5 kB / 482 MB, free: 15.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.554e-06/0.1307, allocations: 0 / 482 MB, free: 15.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.01102/0.1418, allocations: 3.738 MB / 485.7 MB, free: 11.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.379e-05/0.1419, allocations: 123.1 kB / 485.8 MB, free: 11.08 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007027/0.1426, allocations: 0.5222 MB / 486.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.975e-05/0.1427, allocations: 37.69 kB / 486.4 MB, free: 10.51 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002742/0.1429, allocations: 403 kB / 486.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/0.1431, allocations: 185.3 kB / 487 MB, free: 9.926 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002045/0.1433, allocations: 126.6 kB / 487.1 MB, free: 9.797 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.1435, allocations: 374.8 kB / 487.5 MB, free: 9.422 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004925/0.144, allocations: 281.8 kB / 487.7 MB, free: 9.145 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006187/0.1446, allocations: 0.4994 MB / 488.2 MB, free: 8.539 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001171/0.1458, allocations: 0.852 MB / 489.1 MB, free: 7.582 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.804e-06/0.1458, allocations: 4 kB / 489.1 MB, free: 7.578 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003381/0.1492, allocations: 1.445 MB / 490.5 MB, free: 6.078 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.1493, allocations: 8 kB / 490.5 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.1493, allocations: 8.25 kB / 490.6 MB, free: 6.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001571/0.1509, allocations: 471 kB / 491 MB, free: 5.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004597/0.1513, allocations: 115.8 kB / 491.1 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/0.162, allocations: 9.135 MB / 0.4885 GB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006038/0.1626, allocations: 27.98 kB / 0.4886 GB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.435e-05/0.1627, allocations: 28 kB / 0.4886 GB, free: 11.71 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.0004597/0.1632, allocations: 310.4 kB / 0.4889 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.1633, allocations: 63.31 kB / 0.4889 GB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003096/0.1664, allocations: 1.303 MB / 0.4902 GB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.306e-06/0.1665, allocations: 4 kB / 0.4902 GB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.1665, allocations: 7.938 kB / 0.4902 GB, free: 9.965 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.1665, allocations: 7.984 kB / 0.4902 GB, free: 9.957 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004383/0.1709, allocations: 2.241 MB / 0.4924 GB, free: 7.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.1709, allocations: 7.938 kB / 0.4924 GB, free: 7.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000332/0.1713, allocations: 67.98 kB / 0.4925 GB, free: 7.531 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001389/0.1727, allocations: 439 kB / 0.4929 GB, free: 7.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.607e-05/0.1727, allocations: 12 kB / 0.4929 GB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009744/0.1825, allocations: 8.869 MB / 0.5016 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.1825, allocations: 4.031 kB / 0.5016 GB, free: 13.64 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003672/0.1862, allocations: 1.842 MB / 0.5034 GB, free: 11.72 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003193/0.1865, allocations: 200.3 kB / 0.5036 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/0.1867, allocations: 16 kB / 0.5036 GB, free: 11.49 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004312/0.1871, allocations: 15.98 kB / 0.5036 GB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001866/0.1873, allocations: 60.55 kB / 0.5037 GB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.057e-05/0.1873, allocations: 19.94 kB / 0.5037 GB, free: 11.4 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000502/0.1879, allocations: 366.8 kB / 0.504 GB, free: 11.04 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1879, allocations: 7.938 kB / 0.504 GB, free: 11.04 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001019/0.1889, allocations: 248 kB / 0.5043 GB, free: 10.79 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.0002862/0.1892, allocations: 143.7 kB / 0.5044 GB, free: 10.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002365/0.1916, allocations: 1.405 MB / 0.5058 GB, free: 9.176 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.1916, allocations: 4.25 kB / 0.5058 GB, free: 9.172 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00137/0.193, allocations: 0.9703 MB / 0.5067 GB, free: 8.152 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009948/0.194, allocations: 184 kB / 0.5069 GB, free: 7.984 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002984/0.197, allocations: 1.753 MB / 0.5086 GB, free: 6.184 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007805/0.1978, allocations: 1.048 MB / 0.5097 GB, free: 5.105 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.1979, allocations: 47.42 kB / 0.5097 GB, free: 5.059 MB / 398.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1979, allocations: 0 / 0.5097 GB, free: 5.059 MB / 398.1 MB Notification: Performance of Templates: time 0.1823/0.3802, allocations: 24.6 MB / 0.5337 GB, free: 61.29 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/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