Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.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.BLDC,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|efficiency.eta|loadInertia.flange_a.tau|loadInertia.w|power.p",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 109.2 kB / 17.74 MB, free: 5.332 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.001182/0.001183, allocations: 188.3 kB / 18.68 MB, free: 4.406 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.285/1.285, allocations: 222.9 MB / 242.4 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1724/0.1724, allocations: 38.04 MB / 330.6 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 59.91 kB / 458.8 MB, free: 6.832 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2947/0.2961, allocations: 58.05 MB / 0.5048 GB, free: 7.75 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.006792/0.3029, allocations: 7.08 MB / 0.5117 GB, free: 2.836 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00378/0.3067, allocations: 2.855 MB / 0.5145 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000444/0.3072, allocations: 27.06 kB / 0.5145 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001051/0.3083, allocations: 381.4 kB / 0.5149 GB, free: 0.582 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001655/0.3099, allocations: 0.7875 MB / 0.5156 GB, free: 188 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006606/0.3106, allocations: 299.3 kB / 0.5159 GB, free: 20 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002077/0.3127, allocations: 1.576 MB / 0.5175 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001872/0.3146, allocations: 1.427 MB / 0.5188 GB, free: 14.62 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001057/0.3156, allocations: 0.666 MB / 0.5195 GB, free: 14.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009737/0.3166, allocations: 0.7421 MB / 0.5202 GB, free: 14.01 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001994/0.3168, allocations: 140.1 kB / 0.5204 GB, free: 14.01 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001159/0.318, allocations: 0.6827 MB / 0.521 GB, free: 13.86 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005159/0.3185, allocations: 0.4995 MB / 0.5215 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006935/0.3192, allocations: 0.6584 MB / 0.5222 GB, free: 13.22 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00231/0.3216, allocations: 2.123 MB / 0.5242 GB, free: 12.49 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3216, allocations: 0 / 0.5242 GB, free: 12.49 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3216, allocations: 1.844 kB / 0.5242 GB, free: 12.49 MB / 398.1 MB Notification: Performance of Transformations before backend: time 3.028e-05/0.3216, allocations: 0 / 0.5242 GB, free: 12.49 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.003225/0.3248, allocations: 1.54 MB / 0.5257 GB, free: 11.57 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.3249, allocations: 8.719 kB / 0.5257 GB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006853/0.3256, allocations: 166.2 kB / 0.5259 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001573/0.3272, allocations: 0.852 MB / 0.5267 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002329/0.3274, allocations: 203.8 kB / 0.5269 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001884/0.3276, allocations: 98.2 kB / 0.527 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002369/0.33, allocations: 1.472 MB / 0.5285 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.414e-05/0.33, allocations: 1.531 kB / 0.5285 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000108/0.3302, allocations: 45.89 kB / 0.5285 GB, free: 9.988 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001203/0.3303, allocations: 79.34 kB / 0.5286 GB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002154/0.3324, allocations: 1.258 MB / 0.5298 GB, free: 9.328 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006837/0.3393, allocations: 5.171 MB / 0.5349 GB, free: 5.281 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/0.3408, allocations: 1.038 MB / 0.5359 GB, free: 4.594 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008152/0.3417, allocations: 0.4931 MB / 0.5364 GB, free: 4.328 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.49e-05/0.3417, allocations: 15.58 kB / 0.5364 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.188e-05/0.3418, allocations: 43.28 kB / 0.5364 GB, free: 4.273 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 3.657e-06/0.3418, allocations: 4 kB / 0.5364 GB, free: 4.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.006565/0.3484, allocations: 3.066 MB / 0.5394 GB, free: 2.434 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.794e-05/0.3485, allocations: 110.4 kB / 0.5395 GB, free: 2.305 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009725/0.3495, allocations: 0.6871 MB / 0.5402 GB, free: 1.898 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.46e-05/0.3495, allocations: 40.42 kB / 0.5402 GB, free: 1.855 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003681/0.3499, allocations: 479.2 kB / 0.5407 GB, free: 1.434 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002427/0.3502, allocations: 270.5 kB / 0.5409 GB, free: 1.199 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000294/0.3505, allocations: 187.1 kB / 0.5411 GB, free: 1.086 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.3506, allocations: 392.2 kB / 0.5415 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007059/0.3514, allocations: 440.8 kB / 0.5419 GB, free: 0.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008662/0.3522, allocations: 0.718 MB / 0.5426 GB, free: 15.91 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: bldcm.rotor.w = bldcm.rotor.w_start (loadInertia.w_start = bldcm.rotor.w_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.00578/0.358, allocations: 2.589 MB / 0.5451 GB, free: 14.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.277e-05/0.358, allocations: 2.469 kB / 0.5451 GB, free: 14.3 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002337/0.3604, allocations: 1.311 MB / 0.5464 GB, free: 13.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.143e-05/0.3604, allocations: 8 kB / 0.5464 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/0.3604, allocations: 8 kB / 0.5464 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002523/0.3607, allocations: 94.19 kB / 0.5465 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008383/0.3616, allocations: 223.6 kB / 0.5467 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001114/0.3627, allocations: 1.434 MB / 0.5481 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008134/0.3635, allocations: 87.67 kB / 0.5482 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.136e-05/0.3636, allocations: 40 kB / 0.5483 GB, free: 11.05 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: bldcm.rotor.w = bldcm.rotor.w_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[6],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 112 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006636/0.3643, allocations: 413.5 kB / 0.5487 GB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00022/0.3645, allocations: 91.03 kB / 0.5487 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001676/0.3662, allocations: 0.9744 MB / 0.5497 GB, free: 9.551 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.041e-05/0.3662, allocations: 3.984 kB / 0.5497 GB, free: 9.547 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.3662, allocations: 4 kB / 0.5497 GB, free: 9.543 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004276/0.3666, allocations: 252 kB / 0.5499 GB, free: 9.277 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.3668, allocations: 16 kB / 0.55 GB, free: 9.262 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004978/0.3673, allocations: 55.92 kB / 0.55 GB, free: 9.207 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000139/0.3674, allocations: 52.48 kB / 0.5501 GB, free: 9.156 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002184/0.3696, allocations: 1.265 MB / 0.5513 GB, free: 7.879 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002325/0.3719, allocations: 1.825 MB / 0.5531 GB, free: 6.035 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006795/0.3726, allocations: 496.3 kB / 0.5536 GB, free: 5.551 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005968/0.3732, allocations: 491 kB / 0.554 GB, free: 5.078 MB / 414.1 MB Notification: Performance of Backend: time 3.4e-07/0.3732, allocations: 0 / 0.554 GB, free: 5.078 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002364/0.3756, allocations: 1.032 MB / 0.555 GB, free: 4.016 MB / 414.1 MB Notification: Performance of SimCode: time 0.003564/0.3792, allocations: 2.646 MB / 0.5576 GB, free: 1.312 MB / 414.1 MB Notification: Performance of Templates: time 0.02361/0.4028, allocations: 15.38 MB / 0.5726 GB, free: 2.043 MB / 430.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Drives.BLDC.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,efficiency.eta,loadInertia.flange_a.tau,loadInertia.w,power.p Variables in the result:bldcm.flange.tau,bldcm.heat.m,bldcm.heat.ports[1].T,bldcm.heat.ports[2].T,bldcm.heat.ports[3].T,bldcm.heat.ports[4].T,bldcm.heat.ports[5].T,bldcm.heat_adapt.m[1],bldcm.heat_adapt.m[2],bldcm.heat_adapt.port_a.m,bldcm.heat_adapt.port_a.ports[1].T,bldcm.heat_adapt.port_a.ports[2].T,bldcm.heat_adapt.port_ab.m,bldcm.heat_adapt.port_ab.ports[1].T,bldcm.heat_adapt.port_ab.ports[2].T,bldcm.heat_adapt.port_ab.ports[3].T,bldcm.heat_adapt.port_ab.ports[4].T,bldcm.heat_adapt.port_ab.ports[5].T,bldcm.heat_adapt.port_b.m,bldcm.heat_adapt.port_b.ports[1].T,bldcm.heat_adapt.port_b.ports[2].T,bldcm.heat_adapt.port_b.ports[3].T,bldcm.inverter.heat.m,bldcm.inverter.heat.ports[1].T,bldcm.inverter.heat.ports[2].T,bldcm.inverter.heat.ports[3].T,bldcm.inverter.inverter.T[1],bldcm.inverter.inverter.T[2],bldcm.inverter.inverter.T[3],bldcm.inverter.inverter.heat.m,bldcm.inverter.inverter.heat.ports[1].T,bldcm.inverter.inverter.heat.ports[2].T,bldcm.inverter.inverter.heat.ports[3].T,bldcm.inverter.modulator.dphimin,bldcm.inverter.modulator.m,bldcm.inverter.modulator.ngt[1],bldcm.inverter.modulator.ngt[2],bldcm.inverter.modulator.ngt[3],bldcm.inverter.modulator.pgt[1],bldcm.inverter.modulator.pgt[2],bldcm.inverter.modulator.pgt[3],bldcm.inverter.modulator.width,bldcm.motor.c.L_s[1],bldcm.motor.c.L_s[2],bldcm.motor.c.L_s[3],bldcm.motor.c.Psi_pm,bldcm.motor.c.R_n,bldcm.motor.c.R_s,bldcm.motor.c.omega_nom,bldcm.motor.dynType,bldcm.motor.heat.m,bldcm.motor.heat.ports[1].T,bldcm.motor.heat.ports[2].T,bldcm.motor.i_s_start[1],bldcm.motor.i_s_start[2],bldcm.motor.i_s_start[3],bldcm.motor.i_start[1],bldcm.motor.i_start[2],bldcm.motor.i_start[3],bldcm.motor.n_n,bldcm.motor.par.S_nom,bldcm.motor.par.V_nom,bldcm.motor.par.excite,bldcm.motor.par.f_nom,bldcm.motor.par.neu_iso,bldcm.motor.par.pp,bldcm.motor.par.psi_pm,bldcm.motor.par.puUnits,bldcm.motor.par.r_n,bldcm.motor.par.r_s,bldcm.motor.par.x_0,bldcm.motor.par.x_d,bldcm.motor.par.x_q,bldcm.motor.phi_el_start,bldcm.motor.pp,bldcm.motor.top.n_n,bldcm.rotor.J,bldcm.rotor.dynType,bldcm.rotor.w_start,bldcm.w_start,efficiency.S_nom,efficiency.T_amb,efficiency.V_nom,efficiency.av,efficiency.dir_in,efficiency.eta,efficiency.heat.m,efficiency.heat.ports[1].T,efficiency.heat.ports[2].T,efficiency.heat.ports[3].T,efficiency.heat.ports[4].T,efficiency.heat.ports[5].T,efficiency.m,efficiency.puUnits,efficiency.tcst,frictTorq.cFrict[1],frictTorq.cFrict[2],loadInertia.J,loadInertia.dynType,loadInertia.flange_a.tau,loadInertia.w,loadInertia.w_start,power.S_base,power.S_nom,power.V_nom,power.p,power.puUnits,system.alpha0,system.dynType,system.f,system.fType,system.f_lim[1],system.f_lim[2],system.f_nom,system.omega_nom,system.refType,system.synRef,system.w_nom,time,torqueStep.offsetTorque,torqueStep.startTime,torqueStep.stepTorque,voltage.S_nom,voltage.V_base,voltage.V_nom,voltage.pol,voltage.puUnits,voltage.use_vDC_in,voltage.v0,voltage.vDC_internal