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: "" <> buildModelFMU(EHPTexamples.ElectricDrives.tqFollowing,fileNamePrefix="EHPTexamples_EHPTexamples_ElectricDrives_tqFollowing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(EHPTexamples.ElectricDrives.tqFollowing,fileNamePrefix="EHPTexamples_EHPTexamples_ElectricDrives_tqFollowing",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTlib 2.1.4-main/package.mo): time 0.0578/0.0578, allocations: 8.035 MB / 23.26 MB, free: 20 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.0009027/0.0009028, allocations: 96.16 kB / 25.83 MB, free: 3.281 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.001008/0.001008, allocations: 191 kB / 28.5 MB, free: 0.6133 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.388/1.388, allocations: 222.9 MB / 253.9 MB, free: 4.977 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/EHPTexamples main/package.mo): time 0.01602/0.01602, allocations: 3.114 MB / 308.9 MB, free: 2.562 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001648, allocations: 95.86 kB / 373.2 MB, free: 2.238 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2059/0.2076, allocations: 51.97 MB / 425.2 MB, free: 21.6 MB / 302.1 MB Notification: Performance of NFInst.instantiate(EHPTexamples.ElectricDrives.tqFollowing): time 0.007305/0.2149, allocations: 8.973 MB / 434.2 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004114/0.2191, allocations: 2.517 MB / 436.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009095/0.22, allocations: 47.81 kB / 436.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001099/0.2211, allocations: 381.8 kB / 437.1 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001361/0.2225, allocations: 0.571 MB / 437.7 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007849/0.2233, allocations: 445.6 kB / 438.1 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001842/0.2251, allocations: 2.455 MB / 440.6 MB, free: 6.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001579/0.2267, allocations: 2.053 MB / 442.6 MB, free: 4.066 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009907/0.2277, allocations: 1.082 MB / 443.7 MB, free: 2.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009791/0.2287, allocations: 1.347 MB / 445 MB, free: 1.629 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002549/0.229, allocations: 300 kB / 445.3 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000485/0.2295, allocations: 383.8 kB / 445.7 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004507/0.2299, allocations: 0.787 MB / 446.5 MB, free: 176 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001096/0.231, allocations: 1.283 MB / 447.8 MB, free: 14.88 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003173/0.2342, allocations: 3.673 MB / 451.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.2342, allocations: 0 / 451.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2342, allocations: 0 / 451.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.199e-05/0.2343, allocations: 0 / 451.5 MB, free: 11.2 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.005179/0.2395, allocations: 2.693 MB / 454.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.31e-05/0.2396, allocations: 12.03 kB / 454.2 MB, free: 8.426 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003472/0.2399, allocations: 299.6 kB / 454.5 MB, free: 8.121 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006491/0.2406, allocations: 262.1 kB / 454.7 MB, free: 7.863 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001905/0.2425, allocations: 1.29 MB / 456 MB, free: 6.523 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.0002314/0.2427, allocations: 223.4 kB / 456.2 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002748/0.243, allocations: 203.9 kB / 456.4 MB, free: 6.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004133/0.2472, allocations: 2.694 MB / 459.1 MB, free: 3.305 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.478e-05/0.2472, allocations: 7.938 kB / 459.1 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001749/0.2474, allocations: 84 kB / 459.2 MB, free: 3.215 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000102/0.2475, allocations: 99.97 kB / 459.3 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003579/0.2511, allocations: 2.206 MB / 461.5 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01108/0.2622, allocations: 7.965 MB / 469.5 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002502/0.2648, allocations: 1.578 MB / 471 MB, free: 7.086 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001616/0.2664, allocations: 0.94 MB / 472 MB, free: 6.148 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002351/0.2666, allocations: 126 kB / 472.1 MB, free: 6.008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001331/0.268, allocations: 0.7733 MB / 472.9 MB, free: 5.203 MB / 334.1 MB Notification: Performance of pre-optimization done (n=100): time 2.795e-06/0.268, allocations: 0 / 472.9 MB, free: 5.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=117): time 0.01443/0.2824, allocations: 6.605 MB / 479.5 MB, free: 14.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001479/0.2826, allocations: 248.3 kB / 479.7 MB, free: 14.15 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.001711/0.2843, allocations: 1.2 MB / 480.9 MB, free: 12.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.925e-05/0.2845, allocations: 57.64 kB / 481 MB, free: 12.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007898/0.2852, allocations: 0.9114 MB / 481.9 MB, free: 11.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003426/0.2856, allocations: 406.3 kB / 482.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003956/0.286, allocations: 250.8 kB / 482.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.2862, allocations: 353.9 kB / 482.9 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.2874, allocations: 0.7093 MB / 483.6 MB, free: 10.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001405/0.2888, allocations: 1.089 MB / 484.7 MB, free: 8.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008464/0.2973, allocations: 3.57 MB / 488.3 MB, free: 5.266 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-05/0.2973, allocations: 7.938 kB / 488.3 MB, free: 5.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004304/0.3016, allocations: 2.504 MB / 490.8 MB, free: 2.695 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.965e-05/0.3017, allocations: 43.95 kB / 490.8 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.941e-05/0.3017, allocations: 11.98 kB / 490.8 MB, free: 2.637 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/0.3029, allocations: 0.5037 MB / 491.3 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001031/0.3039, allocations: 291.5 kB / 491.6 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00804/0.312, allocations: 8.807 MB / 0.4887 GB, free: 8.473 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001534/0.3135, allocations: 123.9 kB / 0.4888 GB, free: 8.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/0.3137, allocations: 59.98 kB / 0.4889 GB, free: 8.293 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.00212/0.3158, allocations: 1.226 MB / 0.4901 GB, free: 7.066 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001359/0.3172, allocations: 1.058 MB / 0.4911 GB, free: 5.852 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.008336/0.3255, allocations: 3.507 MB / 0.4945 GB, free: 2.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.542e-05/0.3256, allocations: 7.938 kB / 0.4945 GB, free: 2.172 MB / 366.1 MB Notification: Performance of matching and sorting (n=172) (initialization_lambda0): time 0.004174/0.3297, allocations: 2.461 MB / 0.4969 GB, free: 15.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.89e-05/0.3298, allocations: 41.69 kB / 0.497 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.3298, allocations: 12 kB / 0.497 GB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.3309, allocations: 0.504 MB / 0.4975 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009762/0.3319, allocations: 275.6 kB / 0.4977 GB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007863/0.3398, allocations: 8.799 MB / 0.5063 GB, free: 5.457 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/0.3414, allocations: 135.9 kB / 0.5065 GB, free: 5.324 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/0.3415, allocations: 59.94 kB / 0.5065 GB, free: 5.266 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.0005345/0.342, allocations: 300.7 kB / 0.5068 GB, free: 4.969 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002716/0.3423, allocations: 134.4 kB / 0.5069 GB, free: 4.836 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00391/0.3462, allocations: 2.187 MB / 0.5091 GB, free: 2.602 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.3462, allocations: 12 kB / 0.5091 GB, free: 2.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/0.3463, allocations: 7.938 kB / 0.5091 GB, free: 2.582 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.3463, allocations: 7.984 kB / 0.5091 GB, free: 2.574 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2083/0.5546, allocations: 4.59 MB / 0.5136 GB, free: 85.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.5546, allocations: 4.484 kB / 0.5136 GB, free: 85.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008585/0.5555, allocations: 197.2 kB / 0.5138 GB, free: 85.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001393/0.5569, allocations: 0.5207 MB / 0.5143 GB, free: 84.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001123/0.557, allocations: 36.22 kB / 0.5143 GB, free: 84.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006495/0.5635, allocations: 8.617 MB / 0.5227 GB, free: 78.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.5636, allocations: 7.875 kB / 0.5227 GB, free: 78.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004852/0.5684, allocations: 3.212 MB / 0.5259 GB, free: 77.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006439/0.5691, allocations: 362.9 kB / 0.5262 GB, free: 76.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001899/0.5693, allocations: 38.91 kB / 0.5263 GB, free: 76.9 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008928/0.5702, allocations: 100.7 kB / 0.5263 GB, free: 76.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002691/0.5705, allocations: 110.4 kB / 0.5265 GB, free: 76.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.343e-05/0.5705, allocations: 46.34 kB / 0.5265 GB, free: 76.85 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009923/0.5715, allocations: 0.7936 MB / 0.5273 GB, free: 76.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5715, allocations: 0 / 0.5273 GB, free: 76.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002172/0.5737, allocations: 0.7391 MB / 0.528 GB, free: 76.45 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.004322/0.5781, allocations: 3.858 MB / 0.5318 GB, free: 74.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008776/0.5868, allocations: 7.071 MB / 0.5387 GB, free: 68.53 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.5869, allocations: 3.906 kB / 0.5387 GB, free: 68.53 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003594/0.5905, allocations: 2.834 MB / 0.5414 GB, free: 65.77 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001786/0.5923, allocations: 379.7 kB / 0.5418 GB, free: 65.44 MB / 382.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/SymbolicJacobian.mo:1962:3-1962:101:writable] Error: Internal error function createFMIModelDerivativesForInitialization failed Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0184/0.6107, allocations: 13.65 MB / 0.5551 GB, free: 51.18 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001037/0.6117, allocations: 1.738 MB / 0.5568 GB, free: 49.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001217/0.613, allocations: 419.6 kB / 0.5572 GB, free: 48.99 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007542/0.6137, allocations: 0.7805 MB / 0.558 GB, free: 48.21 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.6137, allocations: 0 / 0.558 GB, free: 48.21 MB / 382.1 MB [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: 2.898223593858831 / (6.283185307179586 * aimc.fsNominal). [CodegenUtil.tpl:216:14-216:14:writable] Error: Template error: initial value of unknown type: 0.1017764061411688 / (6.283185307179586 * aimc.fsNominal).