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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001512/0.001512, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007507/0.0007505, allocations: 96.2 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1673/0.1673, allocations: 38.06 MB / 357.2 MB, free: 1.887 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002902/0.0002902, allocations: 8 kB / 424 MB, free: 37.69 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2614, allocations: 56.32 MB / 480.3 MB, free: 9.531 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1497/0.4111, allocations: 112.8 MB / 0.5792 GB, free: 5.57 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002596/0.4114, allocations: 103.9 kB / 0.5793 GB, free: 5.469 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06979/0.4812, allocations: 26.02 MB / 0.6047 GB, free: 11.11 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4813, allocations: 0 / 0.6047 GB, free: 11.11 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.784e-05/0.4813, allocations: 20 kB / 0.6048 GB, free: 11.09 MB / 442.7 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.001949/0.4833, allocations: 1.029 MB / 0.6058 GB, free: 10.01 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.4833, allocations: 8.031 kB / 0.6058 GB, free: 10 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004062/0.4837, allocations: 110.9 kB / 0.6059 GB, free: 9.891 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001813/0.4856, allocations: 0.8611 MB / 0.6067 GB, free: 8.984 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.4857, allocations: 75.7 kB / 0.6068 GB, free: 8.906 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001286/0.4859, allocations: 71.89 kB / 0.6069 GB, free: 8.836 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0017/0.4876, allocations: 0.9641 MB / 0.6078 GB, free: 7.812 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.889e-05/0.4876, allocations: 0 / 0.6078 GB, free: 7.812 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.867e-05/0.4877, allocations: 31.98 kB / 0.6078 GB, free: 7.781 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001136/0.4878, allocations: 57.28 kB / 0.6079 GB, free: 7.727 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001351/0.4892, allocations: 0.7663 MB / 0.6086 GB, free: 6.961 MB / 442.7 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.004956/0.4941, allocations: 3.849 MB / 0.6124 GB, free: 2.891 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007166/0.4949, allocations: 432.8 kB / 0.6128 GB, free: 2.441 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.149e-05/0.4949, allocations: 4.656 kB / 0.6128 GB, free: 2.438 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.495, allocations: 46.55 kB / 0.6128 GB, free: 2.383 MB / 442.7 MB Notification: Performance of pre-optimization done (n=37): time 1.944e-06/0.495, allocations: 0 / 0.6128 GB, free: 2.383 MB / 442.7 MB Notification: Performance of matching and sorting (n=55): time 0.01112/0.5061, allocations: 4.049 MB / 0.6168 GB, free: 14.13 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.42e-05/0.5062, allocations: 107.2 kB / 0.6169 GB, free: 14 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006659/0.5069, allocations: 457.8 kB / 0.6173 GB, free: 13.55 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 5.057e-05/0.5069, allocations: 37.7 kB / 0.6174 GB, free: 13.5 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003191/0.5073, allocations: 399.1 kB / 0.6178 GB, free: 13.11 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001765/0.5075, allocations: 197.2 kB / 0.6179 GB, free: 12.91 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.498e-05/0.5075, allocations: 12 kB / 0.618 GB, free: 12.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.5077, allocations: 374.8 kB / 0.6183 GB, free: 12.53 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004569/0.5081, allocations: 285.8 kB / 0.6186 GB, free: 12.25 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005706/0.5087, allocations: 0.4994 MB / 0.6191 GB, free: 11.64 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005509/0.5093, allocations: 372.6 kB / 0.6194 GB, free: 11.29 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.5093, allocations: 0 / 0.6194 GB, free: 11.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003416/0.5127, allocations: 1.572 MB / 0.621 GB, free: 9.633 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.5128, allocations: 8 kB / 0.621 GB, free: 9.625 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.5128, allocations: 8 kB / 0.621 GB, free: 9.617 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001687/0.5145, allocations: 496 kB / 0.6215 GB, free: 9.117 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000436/0.5149, allocations: 107.8 kB / 0.6216 GB, free: 9.012 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01112/0.526, allocations: 10.11 MB / 0.6314 GB, free: 14.22 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006791/0.5268, allocations: 43.84 kB / 0.6315 GB, free: 14.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.808e-05/0.5268, allocations: 35.98 kB / 0.6315 GB, free: 14.14 MB / 474.7 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 (60): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 3,(3,88.9%) 8,(1,100.0%) 1,(1,100.0%) 3} * Non-linear torn systems: 1 {2 9} Notification: Performance of prepare postOptimizeDAE: time 0.0005398/0.5274, allocations: 301.6 kB / 0.6318 GB, free: 13.84 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001192/0.5275, allocations: 63.25 kB / 0.6319 GB, free: 13.77 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003226/0.5307, allocations: 1.429 MB / 0.6333 GB, free: 12.27 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.627e-06/0.5308, allocations: 4 kB / 0.6333 GB, free: 12.27 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.5308, allocations: 4 kB / 0.6333 GB, free: 12.26 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/0.5308, allocations: 3.984 kB / 0.6333 GB, free: 12.26 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004742/0.5356, allocations: 2.343 MB / 0.6356 GB, free: 9.77 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.5356, allocations: 4.375 kB / 0.6356 GB, free: 9.766 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003501/0.536, allocations: 55.95 kB / 0.6356 GB, free: 9.711 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001562/0.5375, allocations: 487.8 kB / 0.6361 GB, free: 9.219 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.383e-05/0.5376, allocations: 12 kB / 0.6361 GB, free: 9.207 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2459/0.7835, allocations: 9.843 MB / 0.6457 GB, free: 134.9 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.9e-06/0.7835, allocations: 1.781 kB / 0.6457 GB, free: 134.9 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004099/0.7876, allocations: 2.036 MB / 0.6477 GB, free: 134.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003674/0.788, allocations: 196.4 kB / 0.6479 GB, free: 134.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.455e-05/0.7881, allocations: 15.8 kB / 0.6479 GB, free: 134.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003642/0.7885, allocations: 20.08 kB / 0.6479 GB, free: 134.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002016/0.7887, allocations: 57.34 kB / 0.648 GB, free: 134.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.027e-05/0.7887, allocations: 17.69 kB / 0.648 GB, free: 134.1 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0005292/0.7893, allocations: 352.3 kB / 0.6483 GB, free: 134.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7893, allocations: 0 / 0.6483 GB, free: 134.1 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00131/0.7906, allocations: 244.4 kB / 0.6485 GB, free: 134.1 MB / 474.7 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 (30): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,88.9%) 8,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 1 {3 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003983/0.791, allocations: 152.8 kB / 0.6487 GB, free: 134 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002554/0.7936, allocations: 1.488 MB / 0.6501 GB, free: 133.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.7936, allocations: 1.156 kB / 0.6502 GB, free: 133.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001706/0.7953, allocations: 1.128 MB / 0.6513 GB, free: 132.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007313/0.796, allocations: 157.8 kB / 0.6514 GB, free: 132.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002947/0.799, allocations: 2.028 MB / 0.6534 GB, free: 132 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007064/0.7997, allocations: 1.07 MB / 0.6544 GB, free: 131.3 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0003924/0.8001, allocations: 100.9 kB / 0.6545 GB, free: 131.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.222e-05/0.8002, allocations: 43.34 kB / 0.6546 GB, free: 131.3 MB / 474.7 MB Notification: Performance of SimCode: time 9.22e-07/0.8002, allocations: 3.031 kB / 0.6546 GB, free: 131.3 MB / 474.7 MB Notification: Performance of Templates: time 0.02319/0.8234, allocations: 13.72 MB / 0.668 GB, free: 130.6 MB / 474.7 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","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches