Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001666/0.001666, allocations: 125.4 kB / 17.84 MB, free: 5.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001859/0.001859, allocations: 204.5 kB / 18.79 MB, free: 4.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.417/1.417, allocations: 230.4 MB / 250 MB, free: 8.98 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003053/0.003053, allocations: 59.84 kB / 366.9 MB, free: 7.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2741, allocations: 53.31 MB / 420.2 MB, free: 8.273 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.012/0.2861, allocations: 9.762 MB / 430 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007474/0.2936, allocations: 3.77 MB / 433.7 MB, free: 10.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001861/0.2954, allocations: 47.81 kB / 433.8 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002299/0.2977, allocations: 0.7067 MB / 434.5 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002896/0.3006, allocations: 0.9128 MB / 435.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001416/0.302, allocations: 482.3 kB / 435.9 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003664/0.3057, allocations: 2.658 MB / 438.5 MB, free: 5.879 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001987/0.3077, allocations: 1.385 MB / 439.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0022/0.3099, allocations: 1.211 MB / 441.1 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002658/0.3125, allocations: 1.537 MB / 442.7 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007217/0.3133, allocations: 308 kB / 443 MB, free: 1.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001342/0.3146, allocations: 0.5815 MB / 443.5 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00121/0.3158, allocations: 1.036 MB / 444.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002062/0.3179, allocations: 1.489 MB / 446.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005375/0.3233, allocations: 4.324 MB / 450.4 MB, free: 9.906 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.3233, allocations: 3.938 kB / 450.4 MB, free: 9.902 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3233, allocations: 0 / 450.4 MB, free: 9.902 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001068/0.3234, allocations: 0 / 450.4 MB, free: 9.902 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.007308/0.3307, allocations: 3.272 MB / 453.7 MB, free: 6.559 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.3307, allocations: 8.031 kB / 453.7 MB, free: 6.551 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00069/0.3314, allocations: 351.4 kB / 454 MB, free: 6.191 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001242/0.3327, allocations: 378.8 kB / 454.4 MB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003213/0.3359, allocations: 1.745 MB / 456.1 MB, free: 4.023 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/0.336, allocations: 160.1 kB / 456.3 MB, free: 3.863 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004062/0.3364, allocations: 215.9 kB / 456.5 MB, free: 3.652 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004953/0.3414, allocations: 2.727 MB / 459.2 MB, free: 0.8438 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.093e-05/0.3414, allocations: 4 kB / 459.2 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002018/0.3416, allocations: 83.98 kB / 459.3 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00013/0.3418, allocations: 96.05 kB / 459.4 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004486/0.3462, allocations: 2.303 MB / 461.7 MB, free: 14.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01425/0.3605, allocations: 8.232 MB / 469.9 MB, free: 5.887 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003001/0.3635, allocations: 1.546 MB / 471.5 MB, free: 4.277 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002042/0.3655, allocations: 1.019 MB / 472.5 MB, free: 3.262 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000271/0.3658, allocations: 130 kB / 472.6 MB, free: 3.117 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.69e-05/0.3659, allocations: 43.56 kB / 472.7 MB, free: 3.066 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.357e-06/0.3659, allocations: 4 kB / 472.7 MB, free: 3.062 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.01374/0.3796, allocations: 6.491 MB / 479.2 MB, free: 12.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.259e-05/0.3796, allocations: 64.72 kB / 479.2 MB, free: 12.36 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003272/0.3829, allocations: 2.177 MB / 481.4 MB, free: 10.13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001837/0.3831, allocations: 49.7 kB / 481.5 MB, free: 10.08 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009832/0.3841, allocations: 1.161 MB / 482.6 MB, free: 8.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005026/0.3846, allocations: 475.9 kB / 483.1 MB, free: 8.441 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004299/0.385, allocations: 251.5 kB / 483.3 MB, free: 8.191 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.3852, allocations: 353.9 kB / 483.7 MB, free: 7.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001341/0.3865, allocations: 0.7574 MB / 484.4 MB, free: 7.082 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001544/0.3881, allocations: 1.017 MB / 485.5 MB, free: 5.973 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002958/0.391, allocations: 1.861 MB / 487.3 MB, free: 4.023 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.391, allocations: 0 / 487.3 MB, free: 4.023 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005412/0.3964, allocations: 2.754 MB / 490.1 MB, free: 1.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.79e-05/0.3965, allocations: 8 kB / 490.1 MB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/0.3965, allocations: 4 kB / 490.1 MB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002111/0.3986, allocations: 0.7814 MB / 490.9 MB, free: 464 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/0.3998, allocations: 275.5 kB / 491.1 MB, free: 188 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01276/0.4125, allocations: 9.607 MB / 0.489 GB, free: 6.293 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/0.4139, allocations: 95.83 kB / 0.4891 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001759/0.4141, allocations: 51.98 kB / 0.4891 GB, free: 6.148 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001328/0.4154, allocations: 0.7402 MB / 0.4899 GB, free: 5.398 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004824/0.4159, allocations: 222.5 kB / 0.4901 GB, free: 5.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004818/0.4207, allocations: 2.477 MB / 0.4925 GB, free: 2.68 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.098e-05/0.4207, allocations: 16 kB / 0.4925 GB, free: 2.664 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/0.4208, allocations: 4 kB / 0.4925 GB, free: 2.66 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.756e-05/0.4208, allocations: 7.969 kB / 0.4925 GB, free: 2.652 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009683/0.4305, allocations: 4.946 MB / 0.4974 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.829e-06/0.4305, allocations: 4 kB / 0.4974 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001022/0.4315, allocations: 219.9 kB / 0.4976 GB, free: 13.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001848/0.4333, allocations: 0.651 MB / 0.4982 GB, free: 12.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001519/0.4335, allocations: 31.97 kB / 0.4982 GB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0101/0.4436, allocations: 8.726 MB / 0.5068 GB, free: 3.559 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4436, allocations: 4 kB / 0.5068 GB, free: 3.555 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006508/0.4501, allocations: 3.529 MB / 0.5102 GB, free: 15.97 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001065/0.4512, allocations: 455.5 kB / 0.5106 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003072/0.4515, allocations: 31.94 kB / 0.5107 GB, free: 15.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009645/0.4524, allocations: 91.95 kB / 0.5108 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003104/0.4527, allocations: 96.86 kB / 0.5109 GB, free: 15.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.4528, allocations: 43.97 kB / 0.5109 GB, free: 15.25 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002236/0.4551, allocations: 1.528 MB / 0.5124 GB, free: 13.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4551, allocations: 0 / 0.5124 GB, free: 13.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001839/0.4569, allocations: 0.5313 MB / 0.5129 GB, free: 13.17 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007904/0.4648, allocations: 4.456 MB / 0.5173 GB, free: 8.789 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004419/0.4692, allocations: 2.295 MB / 0.5195 GB, free: 6.469 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.239e-06/0.4692, allocations: 0 / 0.5195 GB, free: 6.469 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002672/0.4719, allocations: 1.546 MB / 0.521 GB, free: 4.863 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002244/0.4742, allocations: 454.5 kB / 0.5214 GB, free: 4.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2539/0.7281, allocations: 21.16 MB / 0.5421 GB, free: 117.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001969/0.73, allocations: 1.971 MB / 0.544 GB, free: 116.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001275/0.7313, allocations: 396.6 kB / 0.5444 GB, free: 116.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001045/0.7324, allocations: 0.9875 MB / 0.5454 GB, free: 116.6 MB / 462.1 MB Notification: Performance of SimCode: time 9.71e-07/0.7324, allocations: 3.969 kB / 0.5454 GB, free: 116.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09421/0.8266, allocations: 51.99 MB / 0.5962 GB, free: 72.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.09/23.92, allocations: 7.438 kB / 0.5962 GB, free: 72.95 MB / 462.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1)