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.001809/0.001809, allocations: 108.3 kB / 17.74 MB, free: 5.188 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.001932/0.001932, allocations: 192.3 kB / 18.67 MB, free: 4.266 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.436/1.436, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1756/0.1756, allocations: 38.04 MB / 330.6 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 59.91 kB / 458.8 MB, free: 6.82 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3391, allocations: 58.06 MB / 0.5048 GB, free: 7.867 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.007739/0.3469, allocations: 7.087 MB / 0.5117 GB, free: 2.961 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004741/0.3517, allocations: 2.847 MB / 0.5145 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007952/0.3525, allocations: 35.22 kB / 0.5145 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001293/0.3538, allocations: 381 kB / 0.5149 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002466/0.3563, allocations: 0.7909 MB / 0.5156 GB, free: 316 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008577/0.3572, allocations: 298.7 kB / 0.5159 GB, free: 148 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002609/0.3598, allocations: 1.573 MB / 0.5175 GB, free: 15.42 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002343/0.3621, allocations: 1.426 MB / 0.5188 GB, free: 14.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001456/0.3636, allocations: 0.6538 MB / 0.5195 GB, free: 14.46 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001271/0.3649, allocations: 0.7594 MB / 0.5202 GB, free: 14.14 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002299/0.3651, allocations: 140.1 kB / 0.5204 GB, free: 14.14 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001407/0.3665, allocations: 0.6809 MB / 0.521 GB, free: 13.99 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006219/0.3672, allocations: 0.4952 MB / 0.5215 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008217/0.368, allocations: 0.6598 MB / 0.5222 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003131/0.3711, allocations: 2.115 MB / 0.5242 GB, free: 12.63 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3712, allocations: 4 kB / 0.5242 GB, free: 12.62 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3712, allocations: 1.375 kB / 0.5242 GB, free: 12.62 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.646e-05/0.3712, allocations: 4 kB / 0.5242 GB, free: 12.62 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.003695/0.3749, allocations: 1.548 MB / 0.5257 GB, free: 11.69 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.375, allocations: 9.938 kB / 0.5257 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007079/0.3757, allocations: 165.3 kB / 0.5259 GB, free: 11.63 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001606/0.3773, allocations: 0.8405 MB / 0.5267 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002225/0.3776, allocations: 207.6 kB / 0.5269 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001837/0.3777, allocations: 103.2 kB / 0.527 GB, free: 10.91 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002644/0.3804, allocations: 1.466 MB / 0.5285 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.425e-05/0.3804, allocations: 7.484 kB / 0.5285 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000109/0.3806, allocations: 40.59 kB / 0.5285 GB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001274/0.3807, allocations: 75.81 kB / 0.5286 GB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002092/0.3828, allocations: 1.262 MB / 0.5298 GB, free: 9.406 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007631/0.3904, allocations: 5.178 MB / 0.5349 GB, free: 5.352 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001615/0.3921, allocations: 1.03 MB / 0.5359 GB, free: 4.672 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008257/0.3929, allocations: 0.4978 MB / 0.5364 GB, free: 4.402 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.646e-05/0.393, allocations: 6.906 kB / 0.5364 GB, free: 4.402 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.393, allocations: 43.34 kB / 0.5364 GB, free: 4.355 MB / 398.1 MB Notification: Performance of pre-optimization done (n=74): time 3.507e-06/0.393, allocations: 0 / 0.5364 GB, free: 4.355 MB / 398.1 MB Notification: Performance of matching and sorting (n=78): time 0.006661/0.3997, allocations: 3.075 MB / 0.5394 GB, free: 2.512 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.903e-05/0.3998, allocations: 110.1 kB / 0.5395 GB, free: 2.383 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009521/0.4008, allocations: 0.6907 MB / 0.5402 GB, free: 1.973 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.139e-05/0.4008, allocations: 36.89 kB / 0.5402 GB, free: 1.934 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003109/0.4012, allocations: 482.5 kB / 0.5407 GB, free: 1.508 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002171/0.4014, allocations: 262.6 kB / 0.5409 GB, free: 1.281 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002747/0.4017, allocations: 195.6 kB / 0.5411 GB, free: 1.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.4018, allocations: 391.3 kB / 0.5415 GB, free: 0.7891 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007698/0.4026, allocations: 445.6 kB / 0.5419 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009088/0.4035, allocations: 0.7175 MB / 0.5426 GB, free: 15.98 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.005466/0.409, allocations: 2.577 MB / 0.5451 GB, free: 14.38 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-05/0.409, allocations: 2.781 kB / 0.5451 GB, free: 14.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002295/0.4113, allocations: 1.314 MB / 0.5464 GB, free: 13.07 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.448e-05/0.4114, allocations: 8 kB / 0.5464 GB, free: 13.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/0.4114, allocations: 11.94 kB / 0.5464 GB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002652/0.4117, allocations: 85.66 kB / 0.5465 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008466/0.4125, allocations: 219.9 kB / 0.5467 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001105/0.4137, allocations: 1.446 MB / 0.5481 GB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008102/0.4145, allocations: 83.8 kB / 0.5482 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.417e-05/0.4146, allocations: 40 kB / 0.5483 GB, free: 11.03 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.0007058/0.4153, allocations: 417.3 kB / 0.5487 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002497/0.4155, allocations: 83.05 kB / 0.5487 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001991/0.4175, allocations: 0.9823 MB / 0.5497 GB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.231e-05/0.4176, allocations: 15.98 kB / 0.5497 GB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.4176, allocations: 7.938 kB / 0.5497 GB, free: 9.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.4176, allocations: 3.984 kB / 0.5497 GB, free: 9.496 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003971/0.4216, allocations: 2.265 MB / 0.5519 GB, free: 7.156 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.4216, allocations: 4 kB / 0.5519 GB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007168/0.4223, allocations: 143.8 kB / 0.5521 GB, free: 7.012 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001069/0.4224, allocations: 28.88 kB / 0.5521 GB, free: 6.98 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.503e-05/0.4225, allocations: 16 kB / 0.5521 GB, free: 6.965 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00102/0.4236, allocations: 1.382 MB / 0.5535 GB, free: 5.445 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.4236, allocations: 3.984 kB / 0.5535 GB, free: 5.441 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002551/0.4261, allocations: 1.646 MB / 0.5551 GB, free: 3.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004929/0.4266, allocations: 240.1 kB / 0.5553 GB, free: 3.516 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002126/0.4269, allocations: 19.98 kB / 0.5553 GB, free: 3.496 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005982/0.4275, allocations: 39.95 kB / 0.5554 GB, free: 3.457 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.4276, allocations: 76.41 kB / 0.5554 GB, free: 3.383 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.677e-05/0.4277, allocations: 16 kB / 0.5555 GB, free: 3.367 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0007291/0.4284, allocations: 483 kB / 0.5559 GB, free: 2.902 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4284, allocations: 3.938 kB / 0.5559 GB, free: 2.898 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001215/0.4297, allocations: 263.9 kB / 0.5562 GB, free: 2.641 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (efficiency.pav,efficiency.qav,bldcm.motor.i_s[1],bldcm.motor.i_s[2],bldcm.motor.i_s[3],loadInertia.w,frictTorq.phi) * Number of discrete variables: 7 (system.initime,bldcm.inverter.modulator.gates[1],bldcm.inverter.modulator.gates[2],bldcm.inverter.modulator.gates[3],bldcm.inverter.modulator.gates[4],bldcm.inverter.modulator.gates[5],bldcm.inverter.modulator.gates[6]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000419/0.4301, allocations: 163.1 kB / 0.5563 GB, free: 2.473 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002247/0.4323, allocations: 1.246 MB / 0.5575 GB, free: 1.188 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4324, allocations: 0 / 0.5575 GB, free: 1.188 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009716/0.4333, allocations: 0.6187 MB / 0.5581 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/0.4347, allocations: 221.3 kB / 0.5584 GB, free: 356 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004946/0.4396, allocations: 2.582 MB / 0.5609 GB, free: 13.72 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001011/0.4407, allocations: 1.157 MB / 0.562 GB, free: 12.54 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003438/0.441, allocations: 75.36 kB / 0.5621 GB, free: 12.46 MB / 430.1 MB Notification: Performance of SimCode: time 4.11e-07/0.441, allocations: 3.938 kB / 0.5621 GB, free: 12.46 MB / 430.1 MB Notification: Performance of Templates: time 0.02823/0.4693, allocations: 20.99 MB / 0.5826 GB, free: 7.504 MB / 446.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:efficiency.eta,loadInertia.flange_a.tau,loadInertia.w,power.p,time