Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.conf.json 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) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 113.3 kB / 17.06 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 198.8 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 47.92 kB / 352.2 MB, free: 2.301 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.3091, allocations: 49.45 MB / 401.7 MB, free: 8.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.05076/0.3599, allocations: 49.44 MB / 451.1 MB, free: 6.953 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03624/0.3962, allocations: 12.88 MB / 464 MB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0118/0.408, allocations: 382.8 kB / 464.4 MB, free: 9.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03338/0.4414, allocations: 13.94 MB / 478.3 MB, free: 11.68 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02216/0.4636, allocations: 5.551 MB / 483.9 MB, free: 6.109 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01176/0.4754, allocations: 3.246 MB / 487.1 MB, free: 2.883 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.03827/0.5137, allocations: 24.21 MB / 0.4993 GB, free: 10.59 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.5653/1.079, allocations: 46.95 MB / 0.5452 GB, free: 15 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02268/1.102, allocations: 12.64 MB / 0.5575 GB, free: 14.06 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02295/1.125, allocations: 13.82 MB / 0.571 GB, free: 11.85 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01309/1.138, allocations: 3.624 MB / 0.5746 GB, free: 11.26 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0192/1.157, allocations: 4.109 MB / 0.5786 GB, free: 7.414 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01467/1.172, allocations: 7.289 MB / 0.5857 GB, free: 5.273 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.04316/1.215, allocations: 14.96 MB / 0.6003 GB, free: 12.18 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06817/1.283, allocations: 48.81 MB / 0.648 GB, free: 12.16 MB / 0.4982 GB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/1.283, allocations: 0 / 0.648 GB, free: 12.16 MB / 0.4982 GB Notification: Performance of FrontEnd: time 1.804e-06/1.283, allocations: 0 / 0.648 GB, free: 12.16 MB / 0.4982 GB Notification: Performance of Transformations before backend: time 0.001413/1.285, allocations: 0 / 0.648 GB, free: 12.16 MB / 0.4982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5818 * Number of variables: 5818 Notification: Performance of Generate backend data structure: time 0.09495/1.38, allocations: 28.12 MB / 0.6754 GB, free: 92 kB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 6.512e-05/1.38, allocations: 8.031 kB / 0.6754 GB, free: 84 kB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01223/1.392, allocations: 2.98 MB / 0.6784 GB, free: 13.11 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07633/1.468, allocations: 14.05 MB / 0.6921 GB, free: 15.2 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03833/1.507, allocations: 15.01 MB / 0.7067 GB, free: 0.75 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002093/1.509, allocations: 1.572 MB / 0.7083 GB, free: 15.2 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01009/1.519, allocations: 2.082 MB / 0.7103 GB, free: 13.14 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6393/2.158, allocations: 34.72 MB / 0.7442 GB, free: 185 MB / 0.5764 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001322/2.16, allocations: 31.42 kB / 0.7442 GB, free: 185 MB / 0.5764 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00811/2.168, allocations: 0.8549 MB / 0.7451 GB, free: 184.9 MB / 0.5764 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001232/2.169, allocations: 1.155 MB / 0.7462 GB, free: 184.8 MB / 0.5764 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06997/2.239, allocations: 32.33 MB / 0.7778 GB, free: 171.2 MB / 0.5764 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1931/2.432, allocations: 106.6 MB / 0.8818 GB, free: 77.55 MB / 0.5764 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03511/2.467, allocations: 50.88 MB / 0.9315 GB, free: 23.28 MB / 0.5764 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01385/2.481, allocations: 9.793 MB / 0.9411 GB, free: 13.43 MB / 0.5764 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04502/2.526, allocations: 22.59 MB / 0.9632 GB, free: 7.215 MB / 0.592 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001414/2.527, allocations: 137.8 kB / 0.9633 GB, free: 7.066 MB / 0.592 GB Notification: Performance of pre-optimization done (n=894): time 1.738e-05/2.527, allocations: 0 / 0.9633 GB, free: 7.066 MB / 0.592 GB Notification: Performance of matching and sorting (n=906): time 0.3611/2.888, allocations: 39.96 MB / 1.002 GB, free: 181.6 MB / 0.592 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.202e-05/2.888, allocations: 170.6 kB / 1.002 GB, free: 181.5 MB / 0.592 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01217/2.9, allocations: 8.36 MB / 1.011 GB, free: 178.6 MB / 0.592 GB Notification: Performance of collectPreVariables (initialization): time 0.001612/2.902, allocations: 173.3 kB / 1.011 GB, free: 178.4 MB / 0.592 GB Notification: Performance of collectInitialEqns (initialization): time 0.004742/2.906, allocations: 8.978 MB / 1.02 GB, free: 172.9 MB / 0.592 GB Notification: Performance of collectInitialBindings (initialization): time 0.003576/2.91, allocations: 3.211 MB / 1.023 GB, free: 170.4 MB / 0.592 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003739/2.914, allocations: 2.218 MB / 1.025 GB, free: 169.3 MB / 0.592 GB Notification: Performance of setup shared object (initialization): time 8.034e-05/2.914, allocations: 305 kB / 1.025 GB, free: 169 MB / 0.592 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008696/2.923, allocations: 6.245 MB / 1.031 GB, free: 166.7 MB / 0.592 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01044/2.933, allocations: 9.969 MB / 1.041 GB, free: 159.7 MB / 0.592 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02069/2.954, allocations: 17.24 MB / 1.058 GB, free: 146.8 MB / 0.592 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001325/2.954, allocations: 36.55 kB / 1.058 GB, free: 146.7 MB / 0.592 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.03683/2.991, allocations: 20.37 MB / 1.078 GB, free: 129 MB / 0.592 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001523/2.991, allocations: 56 kB / 1.078 GB, free: 128.9 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002227/2.991, allocations: 116 kB / 1.078 GB, free: 128.8 MB / 0.592 GB Notification: Tearing is skipped for strong component 1 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing=. Notification: Performance of postOpt tearingSystem (initialization): time 0.002755/2.994, allocations: 0.9258 MB / 1.079 GB, free: 128.1 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009011/3.003, allocations: 2.417 MB / 1.081 GB, free: 125.9 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009263/3.012, allocations: 12.46 MB / 1.093 GB, free: 112.8 MB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009621/3.022, allocations: 0.6088 MB / 1.094 GB, free: 112.1 MB / 0.592 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002367/3.024, allocations: 0.5156 MB / 1.094 GB, free: 111.6 MB / 0.592 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 531 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],booleanStep2QS[3].y,booleanStep2QS[2].y,booleanStep2QS[1].y,booleanStep1QS[3].y,booleanStep1QS[2].y,booleanStep1QS[1].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1230): * Single equations (assignments): 1223 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (204,1.3%)} * 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): 5 systems {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01439/3.039, allocations: 7.917 MB / 1.102 GB, free: 103.7 MB / 0.592 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003304/3.042, allocations: 0.9549 MB / 1.103 GB, free: 102.7 MB / 0.592 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03341/3.075, allocations: 17.05 MB / 1.12 GB, free: 85.56 MB / 0.592 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.839e-05/3.076, allocations: 97.47 kB / 1.12 GB, free: 85.47 MB / 0.592 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001974/3.076, allocations: 44 kB / 1.12 GB, free: 85.43 MB / 0.592 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002062/3.076, allocations: 47.81 kB / 1.12 GB, free: 85.38 MB / 0.592 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06601/3.142, allocations: 35.86 MB / 1.155 GB, free: 49.44 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-05/3.142, allocations: 12.78 kB / 1.155 GB, free: 49.43 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005547/3.148, allocations: 1.424 MB / 1.156 GB, free: 48 MB / 0.592 GB Notification: Tearing is skipped for strong component 14 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing=. Notification: Performance of postOpt tearingSystem (simulation): time 0.002845/3.151, allocations: 0.9909 MB / 1.157 GB, free: 46.99 MB / 0.592 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006/3.151, allocations: 207.9 kB / 1.158 GB, free: 46.79 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01202/3.163, allocations: 17.1 MB / 1.174 GB, free: 28.75 MB / 0.592 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.021e-06/3.163, allocations: 11.94 kB / 1.174 GB, free: 28.73 MB / 0.592 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3115/3.475, allocations: 24.86 MB / 1.199 GB, free: 170.8 MB / 0.592 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007368/3.482, allocations: 2.296 MB / 1.201 GB, free: 170.1 MB / 0.592 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003511/3.486, allocations: 182.6 kB / 1.201 GB, free: 169.9 MB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007318/3.493, allocations: 497.2 kB / 1.201 GB, free: 169.8 MB / 0.592 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002069/3.495, allocations: 0.7838 MB / 1.202 GB, free: 169.7 MB / 0.592 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008559/3.496, allocations: 251.7 kB / 1.202 GB, free: 169.7 MB / 0.592 GB Notification: Performance of sorting global known variables: time 0.0122/3.508, allocations: 5.696 MB / 1.208 GB, free: 167.6 MB / 0.592 GB Notification: Performance of sort global known variables: time 7.92e-07/3.508, allocations: 0 / 1.208 GB, free: 167.6 MB / 0.592 GB Notification: Performance of remove unused functions: time 0.01763/3.526, allocations: 3.47 MB / 1.211 GB, free: 167.3 MB / 0.592 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 12 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,quadraticLoadTorqueQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (703): * Single equations (assignments): 695 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(204,1.3%)} * 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): 7 systems {(1,1,100.0%), (1,8,100.0%), (3,25,88.9%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.04739/3.573, allocations: 25.82 MB / 1.237 GB, free: 156.4 MB / 0.592 GB Notification: Performance of simCode: created initialization part: time 0.0271/3.6, allocations: 16.15 MB / 1.252 GB, free: 150 MB / 0.592 GB Notification: Performance of simCode: created event and clocks part: time 1.549e-05/3.601, allocations: 1.484 kB / 1.252 GB, free: 150 MB / 0.592 GB Notification: Performance of simCode: created simulation system equations: time 0.01582/3.616, allocations: 8.78 MB / 1.261 GB, free: 145.3 MB / 0.592 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01991/3.636, allocations: 2.542 MB / 1.263 GB, free: 143.1 MB / 0.592 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2276/3.864, allocations: 128.6 MB / 1.389 GB, free: 13.61 MB / 0.592 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02396/3.888, allocations: 13.12 MB / 1.402 GB, free: 448 kB / 0.592 GB Notification: Performance of simCode: alias equations: time 0.0124/3.9, allocations: 3.989 MB / 1.406 GB, free: 12.44 MB / 0.6077 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.306/4.206, allocations: 7.824 MB / 1.413 GB, free: 189.3 MB / 0.6077 GB Notification: Performance of SimCode: time 1.353e-06/4.206, allocations: 0 / 1.413 GB, free: 189.3 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7042/4.911, allocations: 280.8 MB / 1.688 GB, free: 157.1 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate platform static: time 35.98/40.89, allocations: 7.875 kB / 1.688 GB, free: 157.1 MB / 0.6077 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1)