Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 209 kB / 24.48 MB, free: 3.938 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.443/1.443, allocations: 230.6 MB / 258.2 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1892/0.1892, allocations: 38.54 MB / 353.2 MB, free: 12.3 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.BLDC,tolerance=1e-05,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC") [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002141/0.002141, allocations: 67.91 kB / 493.7 MB, free: 4.184 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3224/0.3245, allocations: 62.47 MB / 0.5432 GB, free: 408 kB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.BLDC): time 0.009299/0.3338, allocations: 6.766 MB / 0.5498 GB, free: 11.28 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005169/0.339, allocations: 2.699 MB / 0.5524 GB, free: 9.18 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007892/0.3398, allocations: 35.09 kB / 0.5524 GB, free: 9.164 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001392/0.3412, allocations: 384 kB / 0.5528 GB, free: 8.867 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00249/0.3437, allocations: 0.8007 MB / 0.5536 GB, free: 8.273 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008409/0.3445, allocations: 306.8 kB / 0.5539 GB, free: 8.023 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002304/0.3468, allocations: 1.587 MB / 0.5554 GB, free: 7.109 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001589/0.3484, allocations: 1.169 MB / 0.5566 GB, free: 6.277 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001254/0.3497, allocations: 0.6809 MB / 0.5572 GB, free: 5.73 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001195/0.3508, allocations: 0.7436 MB / 0.558 GB, free: 4.984 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002132/0.3511, allocations: 144 kB / 0.5581 GB, free: 4.844 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001409/0.3525, allocations: 0.6943 MB / 0.5588 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000512/0.353, allocations: 0.5065 MB / 0.5593 GB, free: 3.641 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006304/0.3536, allocations: 0.5369 MB / 0.5598 GB, free: 3.102 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002417/0.356, allocations: 2.138 MB / 0.5619 GB, free: 0.957 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.356, allocations: 0 / 0.5619 GB, free: 0.957 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.356, allocations: 0 / 0.5619 GB, free: 0.957 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.539e-05/0.3561, allocations: 3.938 kB / 0.5619 GB, free: 0.9531 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.003128/0.3592, allocations: 1.513 MB / 0.5634 GB, free: 15.41 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.3592, allocations: 11.98 kB / 0.5634 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006946/0.3599, allocations: 180.1 kB / 0.5635 GB, free: 15.22 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001608/0.3615, allocations: 0.7668 MB / 0.5643 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003187/0.3618, allocations: 388.6 kB / 0.5647 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001822/0.362, allocations: 99.98 kB / 0.5648 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002322/0.3644, allocations: 1.473 MB / 0.5662 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.795e-05/0.3644, allocations: 3.953 kB / 0.5662 GB, free: 12.34 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001018/0.3645, allocations: 40 kB / 0.5662 GB, free: 12.3 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001251/0.3646, allocations: 77.95 kB / 0.5663 GB, free: 12.22 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00212/0.3667, allocations: 1.272 MB / 0.5676 GB, free: 10.95 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007197/0.3739, allocations: 4.569 MB / 0.572 GB, free: 6.238 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.3754, allocations: 0.8171 MB / 0.5728 GB, free: 5.391 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007774/0.3762, allocations: 472.3 kB / 0.5733 GB, free: 4.922 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.171e-05/0.3763, allocations: 12.64 kB / 0.5733 GB, free: 4.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.796e-05/0.3763, allocations: 39.22 kB / 0.5733 GB, free: 4.863 MB / 414.1 MB Notification: Performance of pre-optimization done (n=74): time 3.286e-06/0.3763, allocations: 0 / 0.5733 GB, free: 4.863 MB / 414.1 MB Notification: Performance of matching and sorting (n=78): time 0.006299/0.3826, allocations: 2.941 MB / 0.5762 GB, free: 1.891 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.959e-05/0.3827, allocations: 115.5 kB / 0.5763 GB, free: 1.754 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007477/0.3834, allocations: 0.565 MB / 0.5769 GB, free: 1.18 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.912e-05/0.3835, allocations: 37.7 kB / 0.5769 GB, free: 1.137 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003698/0.3839, allocations: 0.5039 MB / 0.5774 GB, free: 0.625 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002461/0.3841, allocations: 273.7 kB / 0.5776 GB, free: 364 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002926/0.3844, allocations: 198.5 kB / 0.5778 GB, free: 160 kB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002088/0.3846, allocations: 378.7 kB / 0.5782 GB, free: 15.78 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007396/0.3854, allocations: 441.8 kB / 0.5786 GB, free: 15.34 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009788/0.3863, allocations: 0.7165 MB / 0.5793 GB, free: 14.51 MB / 430.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.005752/0.3921, allocations: 2.515 MB / 0.5818 GB, free: 11.88 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.296e-06/0.3921, allocations: 0 / 0.5818 GB, free: 11.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=126) (initialization): time 0.00238/0.3945, allocations: 1.297 MB / 0.583 GB, free: 10.56 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.563e-05/0.3945, allocations: 12.22 kB / 0.5831 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.781e-05/0.3945, allocations: 8 kB / 0.5831 GB, free: 10.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002689/0.3948, allocations: 89.61 kB / 0.5831 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008677/0.3957, allocations: 219.6 kB / 0.5834 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001337/0.397, allocations: 1.323 MB / 0.5846 GB, free: 8.801 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007378/0.3977, allocations: 79.88 kB / 0.5847 GB, free: 8.723 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.002e-05/0.3978, allocations: 40 kB / 0.5848 GB, free: 8.684 MB / 430.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.000649/0.3985, allocations: 421.2 kB / 0.5852 GB, free: 8.262 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000193/0.3986, allocations: 75.53 kB / 0.5852 GB, free: 8.188 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001717/0.4004, allocations: 0.9664 MB / 0.5862 GB, free: 7.211 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.402e-05/0.4004, allocations: 16 kB / 0.5862 GB, free: 7.195 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.4004, allocations: 3.984 kB / 0.5862 GB, free: 7.191 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.4004, allocations: 0 / 0.5862 GB, free: 7.191 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003604/0.404, allocations: 1.954 MB / 0.5881 GB, free: 5.195 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.404, allocations: 7.984 kB / 0.5881 GB, free: 5.188 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007011/0.4047, allocations: 139.8 kB / 0.5882 GB, free: 5.051 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001002/0.4048, allocations: 28.84 kB / 0.5883 GB, free: 5.02 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.268e-05/0.4049, allocations: 12 kB / 0.5883 GB, free: 5.008 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001049/0.4059, allocations: 1.26 MB / 0.5895 GB, free: 3.645 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.4059, allocations: 4.031 kB / 0.5895 GB, free: 3.641 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002508/0.4084, allocations: 1.631 MB / 0.5911 GB, free: 1.98 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004977/0.4089, allocations: 167.4 kB / 0.5913 GB, free: 1.816 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.409, allocations: 15.94 kB / 0.5913 GB, free: 1.801 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005158/0.4095, allocations: 56.09 kB / 0.5913 GB, free: 1.746 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/0.4097, allocations: 56.55 kB / 0.5914 GB, free: 1.691 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.752e-05/0.4098, allocations: 20 kB / 0.5914 GB, free: 1.672 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005176/0.4103, allocations: 378.8 kB / 0.5918 GB, free: 1.305 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4103, allocations: 0 / 0.5918 GB, free: 1.305 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001027/0.4113, allocations: 256 kB / 0.592 GB, free: 1.055 MB / 430.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.0003882/0.4117, allocations: 166.9 kB / 0.5922 GB, free: 0.8828 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.002122/0.4138, allocations: 1.116 MB / 0.5933 GB, free: 15.75 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4138, allocations: 0 / 0.5933 GB, free: 15.75 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009401/0.4148, allocations: 0.5802 MB / 0.5938 GB, free: 15.16 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000953/0.4157, allocations: 157.6 kB / 0.594 GB, free: 15.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004922/0.4206, allocations: 2.601 MB / 0.5965 GB, free: 12.37 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006951/0.4213, allocations: 0.5553 MB / 0.5971 GB, free: 11.78 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003285/0.4217, allocations: 67.42 kB / 0.5971 GB, free: 11.71 MB / 446.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4217, allocations: 0 / 0.5971 GB, free: 11.71 MB / 446.1 MB Notification: Performance of Templates: time 0.0286/0.4503, allocations: 20.14 MB / 0.6168 GB, free: 7.574 MB / 462.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.BLDC.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 10.271166782360524] Failed to read output from testmodel.py, exit status != 0: 0.45947477873414755 0.47399046499999997 0.11466592599999995 Calling exit ...