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.001566/0.001566, allocations: 103.6 kB / 16.62 MB, free: 6.812 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.00177/0.00177, allocations: 193.8 kB / 17.55 MB, free: 5.941 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.326/1.326, allocations: 222.9 MB / 241.2 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1767/0.1767, allocations: 38.03 MB / 329.4 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 62.61 kB / 398.3 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.102, allocations: 58.08 MB / 456.4 MB, free: 8.375 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.009786/0.1118, allocations: 7.16 MB / 463.5 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00493/0.1167, allocations: 2.914 MB / 466.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007892/0.1176, allocations: 47.69 kB / 466.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001233/0.1188, allocations: 306.5 kB / 466.8 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001371/0.1202, allocations: 0.5291 MB / 467.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006263/0.1208, allocations: 255.7 kB / 467.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001308/0.1222, allocations: 1.196 MB / 468.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001062/0.1232, allocations: 0.8884 MB / 469.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006487/0.1239, allocations: 494.2 kB / 470.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007074/0.1246, allocations: 0.5645 MB / 470.7 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001206/0.1247, allocations: 88 kB / 470.8 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004812/0.1252, allocations: 323.5 kB / 471.1 MB, free: 9.578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003039/0.1255, allocations: 335.2 kB / 471.4 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004439/0.126, allocations: 457.9 kB / 471.9 MB, free: 8.801 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001263/0.1273, allocations: 1.348 MB / 473.2 MB, free: 7.449 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.1273, allocations: 0 / 473.2 MB, free: 7.449 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1273, allocations: 0 / 473.2 MB, free: 7.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.164e-05/0.1273, allocations: 0 / 473.2 MB, free: 7.449 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.002103/0.1294, allocations: 1.149 MB / 474.4 MB, free: 6.246 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.416e-05/0.1295, allocations: 11.97 kB / 474.4 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006689/0.1301, allocations: 135.8 kB / 474.5 MB, free: 6.102 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001036/0.1312, allocations: 0.6554 MB / 475.2 MB, free: 5.406 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001503/0.1313, allocations: 83.62 kB / 475.2 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.1315, allocations: 75.98 kB / 475.3 MB, free: 5.242 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.1329, allocations: 0.953 MB / 476.3 MB, free: 4.246 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.923e-05/0.133, allocations: 7.938 kB / 476.3 MB, free: 4.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.053e-05/0.133, allocations: 24 kB / 476.3 MB, free: 4.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001041/0.1332, allocations: 57.28 kB / 476.4 MB, free: 4.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/0.1345, allocations: 0.7741 MB / 477.1 MB, free: 3.387 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.004837/0.1393, allocations: 3.867 MB / 481 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008105/0.1401, allocations: 0.5128 MB / 481.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004398/0.1406, allocations: 242.5 kB / 481.8 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.125e-05/0.1406, allocations: 4 kB / 481.8 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.986e-05/0.1407, allocations: 38.56 kB / 481.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 2.415e-06/0.1407, allocations: 0 / 481.8 MB, free: 14.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=55): time 0.01356/0.1542, allocations: 3.746 MB / 485.5 MB, free: 10.53 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.1544, allocations: 115.2 kB / 485.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00111/0.1555, allocations: 0.5222 MB / 486.2 MB, free: 9.863 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001247/0.1557, allocations: 33.7 kB / 486.2 MB, free: 9.824 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004123/0.1561, allocations: 403 kB / 486.6 MB, free: 9.426 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002789/0.1564, allocations: 189.3 kB / 486.8 MB, free: 9.238 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003371/0.1567, allocations: 134.5 kB / 486.9 MB, free: 9.102 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002381/0.157, allocations: 374.8 kB / 487.3 MB, free: 8.727 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007464/0.1577, allocations: 277.8 kB / 487.6 MB, free: 8.453 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009564/0.1587, allocations: 0.5033 MB / 488.1 MB, free: 7.848 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001804/0.1605, allocations: 0.852 MB / 488.9 MB, free: 6.891 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.1605, allocations: 0 / 488.9 MB, free: 6.891 MB / 366.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00522/0.1658, allocations: 1.456 MB / 490.4 MB, free: 5.383 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.118e-05/0.1658, allocations: 8 kB / 490.4 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.045e-05/0.1659, allocations: 8 kB / 490.4 MB, free: 5.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002256/0.1681, allocations: 459.2 kB / 490.8 MB, free: 4.906 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007159/0.1689, allocations: 119.8 kB / 490.9 MB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01555/0.1844, allocations: 9.136 MB / 0.4884 GB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009339/0.1854, allocations: 35.89 kB / 0.4884 GB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.957e-05/0.1855, allocations: 28 kB / 0.4884 GB, free: 11.02 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.0006936/0.1862, allocations: 314.4 kB / 0.4887 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001944/0.1864, allocations: 55.34 kB / 0.4888 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004624/0.191, allocations: 1.306 MB / 0.4901 GB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/0.1911, allocations: 4 kB / 0.4901 GB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.1911, allocations: 4 kB / 0.4901 GB, free: 9.273 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.1911, allocations: 3.984 kB / 0.4901 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005324/0.1964, allocations: 2.256 MB / 0.4923 GB, free: 6.898 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.1965, allocations: 0 / 0.4923 GB, free: 6.898 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003484/0.1968, allocations: 63.95 kB / 0.4923 GB, free: 6.836 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001404/0.1982, allocations: 435.1 kB / 0.4927 GB, free: 6.398 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.517e-05/0.1983, allocations: 12 kB / 0.4928 GB, free: 6.387 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009784/0.2081, allocations: 8.864 MB / 0.5014 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.2081, allocations: 144 / 0.5014 GB, free: 12.96 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003768/0.2119, allocations: 1.851 MB / 0.5032 GB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003327/0.2122, allocations: 200.3 kB / 0.5034 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.122e-05/0.2124, allocations: 12 kB / 0.5034 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004195/0.2128, allocations: 19.98 kB / 0.5034 GB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002219/0.213, allocations: 64.47 kB / 0.5035 GB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-05/0.2131, allocations: 19.94 kB / 0.5035 GB, free: 10.7 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000443/0.2135, allocations: 366.8 kB / 0.5039 GB, free: 10.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2135, allocations: 0 / 0.5039 GB, free: 10.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001045/0.2146, allocations: 252 kB / 0.5041 GB, free: 10.1 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.0003001/0.2149, allocations: 146.1 kB / 0.5043 GB, free: 9.945 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002558/0.2175, allocations: 1.4 MB / 0.5056 GB, free: 8.484 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.2175, allocations: 0 / 0.5056 GB, free: 8.484 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00154/0.219, allocations: 0.979 MB / 0.5066 GB, free: 7.457 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001145/0.2202, allocations: 188.2 kB / 0.5068 GB, free: 7.281 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003423/0.2236, allocations: 1.996 MB / 0.5087 GB, free: 5.246 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007799/0.2244, allocations: 1.048 MB / 0.5097 GB, free: 4.168 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004149/0.2248, allocations: 113.7 kB / 0.5098 GB, free: 4.055 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.225, allocations: 51.42 kB / 0.5099 GB, free: 4.004 MB / 398.1 MB Notification: Performance of SimCode: time 8.31e-07/0.225, allocations: 0 / 0.5099 GB, free: 4.004 MB / 398.1 MB Notification: Performance of Templates: time 0.2083/0.4332, allocations: 14.93 MB / 0.5245 GB, free: 67.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/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