Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001209/0.001209, allocations: 182.6 kB / 16.71 MB, free: 4.84 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 225.7 MB / 243.2 MB, free: 10.24 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007933/0.0007932, allocations: 104 kB / 294.4 MB, free: 9.746 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.3238/0.3238, allocations: 38.11 MB / 383.6 MB, free: 40.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004991/0.0004993, allocations: 8 kB / 453.5 MB, free: 8.863 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3895/0.3901, allocations: 59.14 MB / 0.5006 GB, free: 38.93 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.007423/0.3975, allocations: 7.383 MB / 0.5078 GB, free: 36.59 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.007422/0.405, allocations: 4.059 MB / 0.5118 GB, free: 33.24 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001067/0.4061, allocations: 48.88 kB / 0.5118 GB, free: 33.22 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008269/0.407, allocations: 203.2 kB / 0.512 GB, free: 33.11 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001982/0.409, allocations: 0.7151 MB / 0.5127 GB, free: 32.77 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007844/0.4098, allocations: 271.9 kB / 0.513 GB, free: 32.61 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002123/0.4119, allocations: 2.127 MB / 0.515 GB, free: 31.87 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001421/0.4133, allocations: 1.325 MB / 0.5163 GB, free: 31.15 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008304/0.4142, allocations: 0.5116 MB / 0.5168 GB, free: 30.95 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007664/0.415, allocations: 0.689 MB / 0.5175 GB, free: 30.71 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001216/0.4151, allocations: 54.72 kB / 0.5176 GB, free: 30.71 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001138/0.4162, allocations: 0.6146 MB / 0.5182 GB, free: 30.56 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004259/0.4167, allocations: 408 kB / 0.5186 GB, free: 30.43 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005857/0.4173, allocations: 0.5809 MB / 0.5191 GB, free: 30.07 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001499/0.4188, allocations: 1.973 MB / 0.5211 GB, free: 29.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.4188, allocations: 2.875 kB / 0.5211 GB, free: 29.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4188, allocations: 0 / 0.5211 GB, free: 29.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.311e-05/0.4188, allocations: 4 kB / 0.5211 GB, free: 29.57 MB / 378.7 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.002278/0.4211, allocations: 1.335 MB / 0.5224 GB, free: 28.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.4212, allocations: 7.875 kB / 0.5224 GB, free: 28.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000571/0.4217, allocations: 172.3 kB / 0.5225 GB, free: 28.72 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001082/0.4228, allocations: 0.8101 MB / 0.5233 GB, free: 28.21 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001556/0.423, allocations: 205.5 kB / 0.5235 GB, free: 28.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/0.4232, allocations: 106.5 kB / 0.5236 GB, free: 28 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001988/0.4251, allocations: 1.464 MB / 0.5251 GB, free: 27.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.69e-05/0.4252, allocations: 10.94 kB / 0.5251 GB, free: 27.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.988e-05/0.4253, allocations: 40.53 kB / 0.5251 GB, free: 27.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001032/0.4254, allocations: 72.58 kB / 0.5252 GB, free: 27.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001708/0.4271, allocations: 1.264 MB / 0.5264 GB, free: 26.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005639/0.4328, allocations: 5.235 MB / 0.5315 GB, free: 23.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001316/0.4341, allocations: 1.039 MB / 0.5325 GB, free: 22.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006336/0.4348, allocations: 0.4953 MB / 0.533 GB, free: 22.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.839e-05/0.4348, allocations: 16.53 kB / 0.533 GB, free: 22.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.4349, allocations: 42.2 kB / 0.5331 GB, free: 22.69 MB / 378.7 MB Notification: Performance of pre-optimization done (n=74): time 3.807e-06/0.4349, allocations: 0 / 0.5331 GB, free: 22.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=79): time 0.004959/0.4398, allocations: 3.381 MB / 0.5364 GB, free: 20.89 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.232e-05/0.4399, allocations: 113.1 kB / 0.5365 GB, free: 20.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007225/0.4406, allocations: 0.6812 MB / 0.5371 GB, free: 20.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.239e-05/0.4407, allocations: 37.11 kB / 0.5372 GB, free: 20.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002649/0.441, allocations: 484.7 kB / 0.5376 GB, free: 20.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001697/0.4411, allocations: 273 kB / 0.5379 GB, free: 19.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.3e-05/0.4412, allocations: 15.19 kB / 0.5379 GB, free: 19.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.4413, allocations: 391.1 kB / 0.5383 GB, free: 19.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005984/0.4419, allocations: 447.8 kB / 0.5387 GB, free: 19.3 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007277/0.4426, allocations: 0.7235 MB / 0.5394 GB, free: 18.79 MB / 378.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: loadInertia.w = loadInertia.w_start (bldcm.rotor.w_start = loadInertia.w_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.004817/0.4475, allocations: 2.595 MB / 0.542 GB, free: 17.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.995e-06/0.4475, allocations: 3.25 kB / 0.542 GB, free: 17.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.00187/0.4494, allocations: 1.311 MB / 0.5432 GB, free: 16.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.4494, allocations: 13.12 kB / 0.5433 GB, free: 16.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.4494, allocations: 12.94 kB / 0.5433 GB, free: 16.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002287/0.4497, allocations: 84.47 kB / 0.5433 GB, free: 16.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007638/0.4504, allocations: 230.2 kB / 0.5436 GB, free: 16.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007405/0.4512, allocations: 1.345 MB / 0.5449 GB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006687/0.4519, allocations: 82.2 kB / 0.545 GB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.29e-05/0.4519, allocations: 41.89 kB / 0.545 GB, free: 15.54 MB / 378.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: loadInertia.w = loadInertia.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[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 initialization (116): * Single equations (assignments): 113 * 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.0005802/0.4525, allocations: 419.6 kB / 0.5454 GB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001396/0.4527, allocations: 79.77 kB / 0.5455 GB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001619/0.4543, allocations: 0.9893 MB / 0.5464 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.528e-05/0.4543, allocations: 18.33 kB / 0.5465 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.4544, allocations: 1.75 kB / 0.5465 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.4544, allocations: 5 kB / 0.5465 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003623/0.458, allocations: 2.298 MB / 0.5487 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.458, allocations: 1.375 kB / 0.5487 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007065/0.4587, allocations: 143.4 kB / 0.5488 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001011/0.4588, allocations: 23.66 kB / 0.5489 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.072e-05/0.4589, allocations: 23.17 kB / 0.5489 GB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006748/0.4596, allocations: 1.283 MB / 0.5501 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4596, allocations: 1.344 kB / 0.5501 GB, free: 12.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002202/0.4618, allocations: 1.652 MB / 0.5518 GB, free: 11.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003361/0.4622, allocations: 249 kB / 0.552 GB, free: 11.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001017/0.4623, allocations: 18.72 kB / 0.552 GB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004729/0.4627, allocations: 52.45 kB / 0.5521 GB, free: 11.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001713/0.4629, allocations: 61.53 kB / 0.5521 GB, free: 11.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.749e-05/0.463, allocations: 21.98 kB / 0.5521 GB, free: 11.28 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006313/0.4636, allocations: 480 kB / 0.5526 GB, free: 11.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4636, allocations: 0 / 0.5526 GB, free: 11.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001035/0.4647, allocations: 261.1 kB / 0.5528 GB, free: 11.04 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (efficiency.pav,efficiency.qav,bldcm.motor.phi_el,bldcm.motor.w_el,bldcm.motor.i_s[1],bldcm.motor.i_s[2],bldcm.motor.i_s[3]) * 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 (71): * Single equations (assignments): 68 * 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.0003413/0.465, allocations: 167 kB / 0.553 GB, free: 10.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001964/0.467, allocations: 1.244 MB / 0.5542 GB, free: 10.32 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.467, allocations: 0 / 0.5542 GB, free: 10.32 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008836/0.4679, allocations: 0.6121 MB / 0.5548 GB, free: 10.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001112/0.469, allocations: 217.5 kB / 0.555 GB, free: 9.945 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004552/0.4736, allocations: 3.116 MB / 0.5581 GB, free: 8.176 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008076/0.4744, allocations: 1.159 MB / 0.5592 GB, free: 7.387 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009685/0.4754, allocations: 259.5 kB / 0.5595 GB, free: 7.344 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002278/0.4756, allocations: 73.33 kB / 0.5595 GB, free: 7.328 MB / 378.7 MB Notification: Performance of SimCode: time 1.102e-06/0.4756, allocations: 0 / 0.5595 GB, free: 7.328 MB / 378.7 MB Notification: Performance of Templates: time 0.01878/0.4944, allocations: 11.55 MB / 0.5708 GB, free: 14.36 MB / 394.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.pipe 2>&1)