Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr EHPTexamples_EHPTexamples.ElectricDrives.tqFollowing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo", uses=false) 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/EHPTexamples main/package.mo", uses=false) Using package EHPTexamples with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/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) Using package EHPTlib with version 2.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo) Running command: translateModel(EHPTexamples.ElectricDrives.tqFollowing,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.ElectricDrives.tqFollowing") translateModel(EHPTexamples.ElectricDrives.tqFollowing,tolerance=0.0001,outputFormat="empty",numberOfIntervals=10000,variableFilter="",fileNamePrefix="EHPTexamples_EHPTexamples.ElectricDrives.tqFollowing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.04519/0.04519, allocations: 8.029 MB / 24.2 MB, free: 380 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 105.4 kB / 26.77 MB, free: 3.25 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 198.4 kB / 29.47 MB, free: 0.5625 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 222.9 MB / 254.9 MB, free: 4.777 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.0176/0.0176, allocations: 3.119 MB / 309.9 MB, free: 2.367 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001915, allocations: 91.86 kB / 374.3 MB, free: 1.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1912/0.1932, allocations: 51.97 MB / 426.3 MB, free: 21.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.ElectricDrives.tqFollowing): time 0.00794/0.2012, allocations: 9.028 MB / 435.3 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004089/0.2053, allocations: 2.552 MB / 437.9 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006952/0.206, allocations: 47.81 kB / 437.9 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009894/0.207, allocations: 464.6 kB / 438.4 MB, free: 9.281 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001361/0.2084, allocations: 0.6404 MB / 439 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008174/0.2092, allocations: 499.3 kB / 439.5 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001661/0.2109, allocations: 2.452 MB / 442 MB, free: 5.688 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001621/0.2125, allocations: 2.057 MB / 444 MB, free: 3.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001063/0.2136, allocations: 1.079 MB / 445.1 MB, free: 2.488 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001272/0.2148, allocations: 1.319 MB / 446.4 MB, free: 1.164 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003278/0.2152, allocations: 296 kB / 446.7 MB, free: 0.875 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006506/0.2158, allocations: 391.8 kB / 447.1 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006155/0.2165, allocations: 0.7792 MB / 447.9 MB, free: 15.71 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001277/0.2178, allocations: 1.279 MB / 449.2 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003242/0.221, allocations: 3.672 MB / 452.8 MB, free: 10.74 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.221, allocations: 0 / 452.8 MB, free: 10.74 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.221, allocations: 0 / 452.8 MB, free: 10.74 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.818e-05/0.2211, allocations: 0 / 452.8 MB, free: 10.74 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 530 * Number of variables: 530 Notification: Performance of Generate backend data structure: time 0.005561/0.2267, allocations: 2.697 MB / 455.5 MB, free: 7.977 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.92e-05/0.2267, allocations: 8.031 kB / 455.5 MB, free: 7.969 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006997/0.2274, allocations: 266.1 kB / 455.8 MB, free: 7.707 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002153/0.2296, allocations: 1.275 MB / 457.1 MB, free: 6.383 MB / 318.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: logic.tauToDW.tauIsMax = false to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002562/0.2299, allocations: 231.3 kB / 457.3 MB, free: 6.141 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003693/0.2302, allocations: 207.9 kB / 457.5 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004647/0.2349, allocations: 2.69 MB / 460.2 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.284e-05/0.235, allocations: 4 kB / 460.2 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000243/0.2352, allocations: 83.98 kB / 460.3 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001105/0.2353, allocations: 104 kB / 460.4 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004082/0.2394, allocations: 2.206 MB / 462.6 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01213/0.2516, allocations: 7.953 MB / 470.5 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002743/0.2544, allocations: 1.585 MB / 472.1 MB, free: 6.941 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001813/0.2562, allocations: 0.9412 MB / 473.1 MB, free: 6.004 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000234/0.2564, allocations: 122 kB / 473.2 MB, free: 5.867 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001349/0.2578, allocations: 0.7695 MB / 473.9 MB, free: 5.062 MB / 334.1 MB Notification: Performance of pre-optimization done (n=100): time 4.328e-06/0.2579, allocations: 0 / 473.9 MB, free: 5.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=117): time 0.01499/0.2729, allocations: 6.606 MB / 480.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.273, allocations: 248.3 kB / 480.8 MB, free: 14.02 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Machines/BasicMachines/InductionMachines/IM_SquirrelCage.mo:42:3-44:70:writable] Warning: Parameter aimc.TrOperational has no value, and is fixed during initialization (fixed=true), using available start value (start=293.15) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Machines/BasicMachines/InductionMachines/IM_SquirrelCage.mo:36:3-38:67:writable] Warning: Parameter aimc.TrRef has no value, and is fixed during initialization (fixed=true), using available start value (start=293.15) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Machines/BasicMachines/InductionMachines/IM_SquirrelCage.mo:33:3-35:67:writable] Warning: Parameter aimc.Rr has no value, and is fixed during initialization (fixed=true), using available start value (start=0.04) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Machines/BasicMachines/InductionMachines/IM_SquirrelCage.mo:29:3-32:67:writable] Warning: Parameter aimc.Lrsigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1017764061411688 / (6.283185307179586 * aimc.fsNominal)) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Machines/BasicMachines/InductionMachines/IM_SquirrelCage.mo:26:3-28:67:writable] Warning: Parameter aimc.Lm has no value, and is fixed during initialization (fixed=true), using available start value (start=2.898223593858831 / (6.283185307179586 * aimc.fsNominal)) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Machines/Losses/StrayLoadParameters.mo:6:3-7:48:writable] Warning: Parameter aimc.strayLoadParameters.IRef has no value, and is fixed during initialization (fixed=true), using available start value (start=100.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Machines/Losses/CoreParameters.mo:8:3-9:75:writable] Warning: Parameter aimc.statorCoreParameters.VRef has no value, and is fixed during initialization (fixed=true), using available start value (start=100.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Machines/Interfaces/PartialBasicMachine.mo:5:3-5:54:writable] Warning: Parameter aimc.Jr has no value, and is fixed during initialization (fixed=true), using available start value (start=0.29) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Machines/Interfaces/PartialBasicInductionMachine.mo:23:3-25:67:writable] Warning: Parameter aimc.Lssigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1017764061411688 / (6.283185307179586 * aimc.fsNominal)) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Machines/Interfaces/PartialBasicInductionMachine.mo:14:3-16:67:writable] Warning: Parameter aimc.TsRef has no value, and is fixed during initialization (fixed=true), using available start value (start=293.15) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Machines/Interfaces/PartialBasicInductionMachine.mo:11:3-13:67:writable] Warning: Parameter aimc.Rs has no value, and is fixed during initialization (fixed=true), using available start value (start=0.03) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Machines/Interfaces/PartialBasicInductionMachine.mo:8:3-10:65:writable] Warning: Parameter aimc.TsOperational has no value, and is fixed during initialization (fixed=true), using available start value (start=293.15) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Machines/Interfaces/PartialBasicInductionMachine.mo:6:3-7:24:writable] Warning: Parameter aimc.fsNominal has no value, and is fixed during initialization (fixed=true), using available start value (start=50.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Machines/Interfaces/PartialBasicInductionMachine.mo:5:3-5:71:writable] Warning: Parameter aimc.p has no value, and is fixed during initialization (fixed=true), using available start value (start=2) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Electrical/Machines/Utilities/TerminalBox.mo:4:3-6:29:writable] Warning: Parameter terminalBox.terminalConnection has no value, and is fixed during initialization (fixed=true), using available start value (start="Y") as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001764/0.2748, allocations: 1.196 MB / 482 MB, free: 12.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.202e-05/0.2749, allocations: 53.69 kB / 482 MB, free: 12.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007541/0.2757, allocations: 0.9154 MB / 483 MB, free: 11.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003823/0.2761, allocations: 414.1 kB / 483.4 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000418/0.2765, allocations: 254.7 kB / 483.6 MB, free: 11.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.2766, allocations: 353.9 kB / 484 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001288/0.2779, allocations: 0.7093 MB / 484.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001475/0.2794, allocations: 1.089 MB / 485.8 MB, free: 8.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009084/0.2885, allocations: 3.558 MB / 489.3 MB, free: 5.137 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.939e-06/0.2886, allocations: 11.94 kB / 489.3 MB, free: 5.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00459/0.2932, allocations: 2.511 MB / 491.8 MB, free: 2.551 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.441e-05/0.2933, allocations: 37.7 kB / 491.9 MB, free: 2.508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.2933, allocations: 12.31 kB / 491.9 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001218/0.2945, allocations: 0.5023 MB / 492.4 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.2956, allocations: 299.5 kB / 492.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008097/0.3037, allocations: 8.803 MB / 0.4897 GB, free: 8.332 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001414/0.3052, allocations: 127.9 kB / 0.4899 GB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.3053, allocations: 59.98 kB / 0.4899 GB, free: 8.148 MB / 366.1 MB Warning: Assuming fixed start value for the following 5 variables: tqRes.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real aimc.idq_rr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "Rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_rr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "Rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "Stator space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002104/0.3074, allocations: 1.23 MB / 0.4911 GB, free: 6.922 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001413/0.3088, allocations: 1.058 MB / 0.4921 GB, free: 5.703 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00858/0.3174, allocations: 3.507 MB / 0.4956 GB, free: 2.039 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.416e-06/0.3175, allocations: 4 kB / 0.4956 GB, free: 2.035 MB / 366.1 MB Notification: Performance of matching and sorting (n=172) (initialization_lambda0): time 0.004359/0.3218, allocations: 2.473 MB / 0.498 GB, free: 15.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.493e-05/0.3219, allocations: 37.7 kB / 0.498 GB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.493e-05/0.3219, allocations: 16.05 kB / 0.498 GB, free: 15.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001187/0.3231, allocations: 0.5 MB / 0.4985 GB, free: 14.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001034/0.3241, allocations: 279.5 kB / 0.4988 GB, free: 14.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008136/0.3323, allocations: 8.794 MB / 0.5074 GB, free: 5.312 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001405/0.3337, allocations: 127.9 kB / 0.5075 GB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.3338, allocations: 59.98 kB / 0.5076 GB, free: 5.129 MB / 382.1 MB Warning: Assuming fixed start value for the following 5 variables: tqRes.phi:VARIABLE(unit = "rad" fixed = true ) "Angle of flange with respect to support (= flange.phi - support.phi)" type: Real aimc.idq_rr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "Rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_rr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "Rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "Stator space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer final = true ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.tqReq.count,$PRE.tqReq.T_start,tqReq.count,tqReq.T_start,logic.toMaxSpeed.y,logic.toWeakening.y,logic.tauToDW.tauIsMax,$whenCondition1,genSines.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 1 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004557/0.3343, allocations: 301.3 kB / 0.5078 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002197/0.3345, allocations: 142.3 kB / 0.508 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004007/0.3385, allocations: 2.183 MB / 0.5101 GB, free: 2.461 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.748e-06/0.3386, allocations: 12 kB / 0.5101 GB, free: 2.449 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.3386, allocations: 8 kB / 0.5101 GB, free: 2.441 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.325e-05/0.3386, allocations: 7.922 kB / 0.5101 GB, free: 2.434 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.164/0.5026, allocations: 4.594 MB / 0.5146 GB, free: 84.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.5026, allocations: 4.031 kB / 0.5146 GB, free: 84.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008469/0.5035, allocations: 197.1 kB / 0.5148 GB, free: 84.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001305/0.5048, allocations: 0.5203 MB / 0.5153 GB, free: 84.73 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.896e-05/0.5049, allocations: 37.22 kB / 0.5154 GB, free: 84.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00645/0.5114, allocations: 8.611 MB / 0.5238 GB, free: 78.16 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.5114, allocations: 6.781 kB / 0.5238 GB, free: 78.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004729/0.5161, allocations: 3.218 MB / 0.5269 GB, free: 76.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006011/0.5167, allocations: 361.6 kB / 0.5273 GB, free: 76.6 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002206/0.517, allocations: 35.41 kB / 0.5273 GB, free: 76.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/0.518, allocations: 107 kB / 0.5274 GB, free: 76.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002417/0.5183, allocations: 117.3 kB / 0.5275 GB, free: 76.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.164e-05/0.5184, allocations: 39.39 kB / 0.5276 GB, free: 76.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001023/0.5194, allocations: 0.7937 MB / 0.5283 GB, free: 76.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5194, allocations: 0 / 0.5283 GB, free: 76.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002176/0.5216, allocations: 0.7401 MB / 0.529 GB, free: 76.13 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (aimc.inertiaRotor.w,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],genSines.integrator.y,tqRes.phi) * Number of discrete variables: 6 ($whenCondition1,logic.tauToDW.tauIsMax,logic.toWeakening.y,logic.toMaxSpeed.y,tqReq.T_start,tqReq.count) * Number of discrete states: 1 (tqReq.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 1 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(2,12,100.0%), (1,1,100.0%), (1,6,100.0%), (2,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.0002698/0.5219, allocations: 192.5 kB / 0.5292 GB, free: 76.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01278/0.5346, allocations: 7.534 MB / 0.5366 GB, free: 71.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.5347, allocations: 4 kB / 0.5366 GB, free: 71.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005274/0.5399, allocations: 3.053 MB / 0.5396 GB, free: 68.33 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001725/0.5417, allocations: 380.8 kB / 0.5399 GB, free: 68.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005144/0.5468, allocations: 4.166 MB / 0.544 GB, free: 63.91 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008847/0.5477, allocations: 1.682 MB / 0.5457 GB, free: 62.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003143/0.5481, allocations: 107.4 kB / 0.5458 GB, free: 62.09 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.5481, allocations: 0 / 0.5458 GB, free: 62.09 MB / 382.1 MB Notification: Performance of Templates: time 0.0527/0.6008, allocations: 72.28 MB / 0.6163 GB, free: 5.801 MB / 398.1 MB make -j1 -f EHPTexamples_EHPTexamples.ElectricDrives.tqFollowing.makefile make -j1 -f EHPTexamples_EHPTexamples.ElectricDrives.tqFollowing.makefile clang++ -std=c++17 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingCalcHelperMain.o OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingCalcHelperMain.cpp In file included from OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingCalcHelperMain.cpp:29: ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1139:29: error: use of undeclared identifier '_algLoopLinearSolver97' double* algloop97Vars = _algLoopLinearSolver97->getVariableWorkArray(); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1140:46: error: use of undeclared identifier '_algLoopLinearSolver97' bool* conditions097 = _algLoopLinearSolver97->getConditionsWorkArray(); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1141:45: error: use of undeclared identifier '_algLoopLinearSolver97' bool* conditions197 = _algLoopLinearSolver97->getConditions2WorkArray(); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1142:5: error: use of undeclared identifier '_algLoop97' _algLoop97->getReal(algloop97Vars); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1146:10: error: use of undeclared identifier '_algLoop97' _algLoop97->evaluate(); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1154:16: error: use of undeclared identifier '_algLoopNonLinearSolver97' _algLoopNonLinearSolver97->solve(); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1162:41: error: use of undeclared identifier '_conditions197'; did you mean 'conditions197'? restart97 = !std::equal (_conditions197, _conditions197+_dimZeroFunc,_conditions097); ^~~~~~~~~~~~~~ conditions197 ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1141:29: note: 'conditions197' declared here bool* conditions197 = _algLoopLinearSolver97->getConditions2WorkArray(); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1162:57: error: use of undeclared identifier '_conditions197'; did you mean 'conditions197'? restart97 = !std::equal (_conditions197, _conditions197+_dimZeroFunc,_conditions097); ^~~~~~~~~~~~~~ conditions197 ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1141:29: note: 'conditions197' declared here bool* conditions197 = _algLoopLinearSolver97->getConditions2WorkArray(); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1162:85: error: use of undeclared identifier '_conditions097'; did you mean 'conditions097'? restart97 = !std::equal (_conditions197, _conditions197+_dimZeroFunc,_conditions097); ^~~~~~~~~~~~~~ conditions097 ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1140:30: note: 'conditions097' declared here bool* conditions097 = _algLoopLinearSolver97->getConditionsWorkArray(); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1166:13: error: use of undeclared identifier '_algLoopNonLinearSolver97' _algLoopNonLinearSolver97->solve(); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1179:18: error: use of undeclared identifier '_algLoop97' _algLoop97->setReal(algloop97Vars ); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1180:18: error: use of undeclared identifier '_algLoopNonLinearSolver97' _algLoopNonLinearSolver97->solve(); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1196:30: error: use of undeclared identifier '_algLoopLinearSolver100' double* algloop100Vars = _algLoopLinearSolver100->getVariableWorkArray(); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1197:47: error: use of undeclared identifier '_algLoopLinearSolver100' bool* conditions0100 = _algLoopLinearSolver100->getConditionsWorkArray(); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1198:46: error: use of undeclared identifier '_algLoopLinearSolver100' bool* conditions1100 = _algLoopLinearSolver100->getConditions2WorkArray(); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1199:5: error: use of undeclared identifier '_algLoop100' _algLoop100->getReal(algloop100Vars); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1203:10: error: use of undeclared identifier '_algLoop100' _algLoop100->evaluate(); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1211:16: error: use of undeclared identifier '_algLoopNonLinearSolver100' _algLoopNonLinearSolver100->solve(); ^ ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1219:42: error: use of undeclared identifier '_conditions1100'; did you mean 'conditions1100'? restart100 = !std::equal (_conditions1100, _conditions1100+_dimZeroFunc,_conditions0100); ^~~~~~~~~~~~~~~ conditions1100 ./OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingInitialize.cpp:1198:29: note: 'conditions1100' declared here bool* conditions1100 = _algLoopLinearSolver100->getConditions2WorkArray(); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [: OMCppEHPTexamples_EHPTexamples.ElectricDrives.tqFollowingCalcHelperMain.o] Error 1