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.001406/0.001406, allocations: 111 kB / 17.74 MB, free: 5.34 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.00145/0.00145, allocations: 192.3 kB / 18.67 MB, free: 4.414 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.381/1.381, allocations: 222.9 MB / 242.4 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.1906/0.1906, allocations: 38.03 MB / 330.6 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 75.89 kB / 458.8 MB, free: 6.824 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3367/0.3382, allocations: 58.04 MB / 0.5048 GB, free: 7.723 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDCcharSpeed): time 0.007375/0.3457, allocations: 6.342 MB / 0.511 GB, free: 3.328 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004227/0.3499, allocations: 2.663 MB / 0.5136 GB, free: 1.449 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007046/0.3507, allocations: 26.06 kB / 0.5136 GB, free: 1.441 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001229/0.3519, allocations: 333.7 kB / 0.5139 GB, free: 1.254 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001638/0.3536, allocations: 0.5925 MB / 0.5145 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000775/0.3543, allocations: 285.4 kB / 0.5148 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001849/0.3562, allocations: 1.202 MB / 0.5159 GB, free: 228 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001251/0.3575, allocations: 0.8772 MB / 0.5168 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009835/0.3585, allocations: 497.5 kB / 0.5173 GB, free: 15.61 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009632/0.3594, allocations: 0.5348 MB / 0.5178 GB, free: 15.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001853/0.3596, allocations: 86.12 kB / 0.5179 GB, free: 15.38 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000863/0.3605, allocations: 327.7 kB / 0.5182 GB, free: 15.31 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005127/0.361, allocations: 336.5 kB / 0.5185 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005847/0.3616, allocations: 460.8 kB / 0.5189 GB, free: 14.88 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00199/0.3636, allocations: 1.376 MB / 0.5203 GB, free: 14.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3636, allocations: 0 / 0.5203 GB, free: 14.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3637, allocations: 1.062 kB / 0.5203 GB, free: 14.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.581e-05/0.3637, allocations: 0 / 0.5203 GB, free: 14.41 MB / 398.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.002572/0.3663, allocations: 1.144 MB / 0.5214 GB, free: 13.64 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3663, allocations: 10.02 kB / 0.5214 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000711/0.367, allocations: 131.4 kB / 0.5215 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/0.3683, allocations: 0.6899 MB / 0.5222 GB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/0.3685, allocations: 85.56 kB / 0.5223 GB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001301/0.3686, allocations: 65.62 kB / 0.5224 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001685/0.3703, allocations: 0.9583 MB / 0.5233 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.748e-05/0.3703, allocations: 2.406 kB / 0.5233 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.831e-05/0.3704, allocations: 30.41 kB / 0.5233 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001168/0.3706, allocations: 57.7 kB / 0.5234 GB, free: 12.58 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001346/0.3719, allocations: 0.7794 MB / 0.5241 GB, free: 12.3 MB / 398.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.005573/0.3775, allocations: 3.828 MB / 0.5279 GB, free: 9.605 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008558/0.3784, allocations: 0.5179 MB / 0.5284 GB, free: 9.289 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004331/0.3788, allocations: 238.6 kB / 0.5286 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.435e-05/0.3789, allocations: 4.031 kB / 0.5286 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.226e-05/0.3789, allocations: 41.86 kB / 0.5286 GB, free: 9.141 MB / 398.1 MB Notification: Performance of pre-optimization done (n=37): time 2.906e-06/0.3789, allocations: 4 kB / 0.5287 GB, free: 9.137 MB / 398.1 MB Notification: Performance of matching and sorting (n=55): time 0.01101/0.3899, allocations: 3.748 MB / 0.5323 GB, free: 6.836 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.624e-05/0.39, allocations: 117.1 kB / 0.5324 GB, free: 6.703 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008198/0.3909, allocations: 0.5204 MB / 0.5329 GB, free: 6.391 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.819e-05/0.391, allocations: 32.05 kB / 0.533 GB, free: 6.355 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003079/0.3913, allocations: 408 kB / 0.5334 GB, free: 5.992 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001858/0.3915, allocations: 189.4 kB / 0.5335 GB, free: 5.828 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002112/0.3917, allocations: 131.3 kB / 0.5337 GB, free: 5.742 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.3919, allocations: 374.6 kB / 0.534 GB, free: 5.383 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004753/0.3923, allocations: 284.5 kB / 0.5343 GB, free: 5.238 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006245/0.393, allocations: 0.5014 MB / 0.5348 GB, free: 4.789 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001177/0.3942, allocations: 0.8441 MB / 0.5356 GB, free: 4.156 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.3942, allocations: 2.812 kB / 0.5356 GB, free: 4.156 MB / 398.1 MB Notification: Performance of matching and sorting (n=87) (initialization): time 0.003389/0.3976, allocations: 1.451 MB / 0.537 GB, free: 3.23 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.3976, allocations: 7.406 kB / 0.537 GB, free: 3.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.137e-05/0.3977, allocations: 7.906 kB / 0.537 GB, free: 3.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001599/0.3993, allocations: 456.5 kB / 0.5375 GB, free: 2.988 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004756/0.3998, allocations: 114.2 kB / 0.5376 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/0.4104, allocations: 9.132 MB / 0.5465 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007789/0.4112, allocations: 35.61 kB / 0.5465 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.201e-05/0.4113, allocations: 32.75 kB / 0.5466 GB, free: 11 MB / 414.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.0005583/0.4118, allocations: 311.8 kB / 0.5469 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.412, allocations: 60.44 kB / 0.5469 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003029/0.415, allocations: 1.304 MB / 0.5482 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.4151, allocations: 6.688 kB / 0.5482 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.4151, allocations: 3.188 kB / 0.5482 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.4151, allocations: 5.391 kB / 0.5482 GB, free: 9.828 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00459/0.4197, allocations: 2.251 MB / 0.5504 GB, free: 8.211 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.4197, allocations: 4 kB / 0.5504 GB, free: 8.207 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003425/0.4201, allocations: 63.89 kB / 0.5505 GB, free: 8.145 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001339/0.4214, allocations: 431.3 kB / 0.5509 GB, free: 7.711 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.831e-05/0.4215, allocations: 15.98 kB / 0.5509 GB, free: 7.695 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009868/0.4314, allocations: 8.853 MB / 0.5595 GB, free: 14.28 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.255e-06/0.4314, allocations: 4 kB / 0.5595 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003742/0.4352, allocations: 1.848 MB / 0.5613 GB, free: 12.35 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004445/0.4356, allocations: 204.3 kB / 0.5615 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001609/0.4358, allocations: 12.11 kB / 0.5616 GB, free: 12.12 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004751/0.4363, allocations: 23.86 kB / 0.5616 GB, free: 12.1 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002122/0.4365, allocations: 56.48 kB / 0.5616 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.155e-05/0.4366, allocations: 23.92 kB / 0.5617 GB, free: 12.02 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005806/0.4372, allocations: 374.9 kB / 0.562 GB, free: 11.66 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4372, allocations: 0 / 0.562 GB, free: 11.66 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001275/0.4384, allocations: 248 kB / 0.5622 GB, free: 11.41 MB / 430.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.0003635/0.4388, allocations: 135.1 kB / 0.5624 GB, free: 11.27 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002443/0.4413, allocations: 1.354 MB / 0.5637 GB, free: 9.859 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.4413, allocations: 0 / 0.5637 GB, free: 9.859 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001467/0.4428, allocations: 0.9628 MB / 0.5646 GB, free: 8.848 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.444, allocations: 188.8 kB / 0.5648 GB, free: 8.668 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003291/0.4473, allocations: 1.722 MB / 0.5665 GB, free: 6.895 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008519/0.4481, allocations: 1.048 MB / 0.5675 GB, free: 5.82 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.4483, allocations: 47.42 kB / 0.5676 GB, free: 5.773 MB / 430.1 MB Notification: Performance of SimCode: time 2.124e-06/0.4483, allocations: 4 kB / 0.5676 GB, free: 5.77 MB / 430.1 MB Notification: Performance of Templates: time 0.03246/0.4808, allocations: 24.67 MB / 0.5917 GB, free: 13.11 MB / 462.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