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.001186/0.001186, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.001209/0.001209, allocations: 196 kB / 18 MB, free: 5.105 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.35/1.35, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 52.02 kB / 352.2 MB, free: 2.32 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2897, allocations: 49.44 MB / 401.7 MB, free: 8.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.04702/0.3367, allocations: 49.45 MB / 451.1 MB, free: 6.961 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03011/0.3669, allocations: 12.89 MB / 464 MB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01199/0.3789, allocations: 378.8 kB / 464.4 MB, free: 9.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03161/0.4106, allocations: 13.85 MB / 478.2 MB, free: 11.78 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01929/0.43, allocations: 5.422 MB / 483.7 MB, free: 6.336 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01154/0.4415, allocations: 3.252 MB / 486.9 MB, free: 3.105 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02907/0.4706, allocations: 24.2 MB / 0.4991 GB, free: 10.82 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.5936/1.064, allocations: 46.95 MB / 0.545 GB, free: 15.3 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01873/1.083, allocations: 12.64 MB / 0.5573 GB, free: 14.36 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01926/1.102, allocations: 13.81 MB / 0.5708 GB, free: 12.16 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01075/1.113, allocations: 3.626 MB / 0.5743 GB, free: 11.34 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01575/1.129, allocations: 4.114 MB / 0.5784 GB, free: 7.496 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01516/1.144, allocations: 7.289 MB / 0.5855 GB, free: 5.355 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03762/1.182, allocations: 14.95 MB / 0.6001 GB, free: 12.22 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06209/1.244, allocations: 48.7 MB / 0.6476 GB, free: 12.52 MB / 0.4982 GB Notification: Performance of FrontEnd - DAE generated: time 8.466e-06/1.244, allocations: 0 / 0.6476 GB, free: 12.52 MB / 0.4982 GB Notification: Performance of FrontEnd: time 2.575e-06/1.244, allocations: 0 / 0.6476 GB, free: 12.52 MB / 0.4982 GB Notification: Performance of Transformations before backend: time 0.001631/1.246, allocations: 4 kB / 0.6476 GB, free: 12.51 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.09072/1.336, allocations: 27.61 MB / 0.6746 GB, free: 0.9805 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 5.275e-05/1.336, allocations: 8.031 kB / 0.6746 GB, free: 0.9727 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01326/1.35, allocations: 2.977 MB / 0.6775 GB, free: 14 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07662/1.426, allocations: 13.94 MB / 0.6911 GB, free: 188 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03262/1.459, allocations: 14.97 MB / 0.7058 GB, free: 1.777 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001918/1.461, allocations: 1.573 MB / 0.7073 GB, free: 228 kB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01021/1.471, allocations: 2.074 MB / 0.7093 GB, free: 14.17 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5525/2.024, allocations: 34.72 MB / 0.7432 GB, free: 184.9 MB / 0.5764 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001364/2.025, allocations: 28.86 kB / 0.7433 GB, free: 184.9 MB / 0.5764 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00757/2.033, allocations: 0.8533 MB / 0.7441 GB, free: 184.9 MB / 0.5764 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001178/2.034, allocations: 1.155 MB / 0.7452 GB, free: 184.9 MB / 0.5764 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06582/2.1, allocations: 32.33 MB / 0.7768 GB, free: 171.7 MB / 0.5764 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1628/2.263, allocations: 106.3 MB / 0.8806 GB, free: 78.05 MB / 0.5764 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03436/2.297, allocations: 50.88 MB / 0.9303 GB, free: 23.77 MB / 0.5764 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01398/2.311, allocations: 9.794 MB / 0.9398 GB, free: 13.93 MB / 0.5764 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04594/2.357, allocations: 22.55 MB / 0.9619 GB, free: 7.492 MB / 0.592 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001184/2.357, allocations: 129.9 kB / 0.962 GB, free: 7.352 MB / 0.592 GB Notification: Performance of pre-optimization done (n=894): time 1.057e-05/2.357, allocations: 0 / 0.962 GB, free: 7.352 MB / 0.592 GB Notification: Performance of matching and sorting (n=906): time 0.3721/2.729, allocations: 39.51 MB / 1.001 GB, free: 181.8 MB / 0.592 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.274e-05/2.73, allocations: 169.8 kB / 1.001 GB, free: 181.7 MB / 0.592 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01534/2.745, allocations: 8.349 MB / 1.009 GB, free: 178.6 MB / 0.592 GB Notification: Performance of collectPreVariables (initialization): time 0.002414/2.747, allocations: 178.3 kB / 1.009 GB, free: 178.5 MB / 0.592 GB Notification: Performance of collectInitialEqns (initialization): time 0.006057/2.753, allocations: 8.686 MB / 1.018 GB, free: 172 MB / 0.592 GB Notification: Performance of collectInitialBindings (initialization): time 0.004354/2.758, allocations: 3.054 MB / 1.021 GB, free: 169.6 MB / 0.592 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005105/2.763, allocations: 2.21 MB / 1.023 GB, free: 168.6 MB / 0.592 GB Notification: Performance of setup shared object (initialization): time 9.84e-05/2.763, allocations: 301.1 kB / 1.023 GB, free: 168.3 MB / 0.592 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0092/2.772, allocations: 6.25 MB / 1.029 GB, free: 165.9 MB / 0.592 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01193/2.784, allocations: 9.977 MB / 1.039 GB, free: 158.9 MB / 0.592 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0215/2.806, allocations: 17.24 MB / 1.056 GB, free: 146.4 MB / 0.592 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001729/2.806, allocations: 32 kB / 1.056 GB, free: 146.4 MB / 0.592 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.03673/2.843, allocations: 20.33 MB / 1.076 GB, free: 128.7 MB / 0.592 GB Notification: Performance of prepare postOptimizeDAE: time 0.000106/2.843, allocations: 56 kB / 1.076 GB, free: 128.6 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002172/2.843, allocations: 119.4 kB / 1.076 GB, free: 128.5 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.002686/2.846, allocations: 0.9282 MB / 1.077 GB, free: 127.8 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009499/2.855, allocations: 2.414 MB / 1.079 GB, free: 125.5 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009701/2.865, allocations: 12.45 MB / 1.091 GB, free: 112.4 MB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01156/2.877, allocations: 0.6048 MB / 1.092 GB, free: 111.8 MB / 0.592 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002818/2.879, allocations: 0.5117 MB / 1.092 GB, free: 111.3 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.01522/2.895, allocations: 7.922 MB / 1.1 GB, free: 103.4 MB / 0.592 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002599/2.897, allocations: 0.9069 MB / 1.101 GB, free: 102.5 MB / 0.592 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02698/2.924, allocations: 17.04 MB / 1.117 GB, free: 85.28 MB / 0.592 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.121e-05/2.924, allocations: 99.94 kB / 1.118 GB, free: 85.18 MB / 0.592 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.799e-05/2.925, allocations: 40 kB / 1.118 GB, free: 85.14 MB / 0.592 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001524/2.925, allocations: 49.23 kB / 1.118 GB, free: 85.09 MB / 0.592 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07123/2.996, allocations: 35.87 MB / 1.153 GB, free: 49.16 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.771e-05/2.996, allocations: 6.25 kB / 1.153 GB, free: 49.15 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006458/3.002, allocations: 1.428 MB / 1.154 GB, free: 47.72 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.003016/3.006, allocations: 0.9831 MB / 1.155 GB, free: 46.72 MB / 0.592 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001381/3.007, allocations: 208 kB / 1.155 GB, free: 46.52 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01291/3.02, allocations: 17.1 MB / 1.172 GB, free: 28.48 MB / 0.592 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/3.02, allocations: 11.94 kB / 1.172 GB, free: 28.47 MB / 0.592 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3989/3.419, allocations: 24.8 MB / 1.196 GB, free: 170.6 MB / 0.592 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006945/3.426, allocations: 2.249 MB / 1.198 GB, free: 169.8 MB / 0.592 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003103/3.429, allocations: 178.4 kB / 1.199 GB, free: 169.7 MB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006847/3.436, allocations: 494.6 kB / 1.199 GB, free: 169.6 MB / 0.592 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002428/3.438, allocations: 0.7887 MB / 1.2 GB, free: 169.5 MB / 0.592 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008525/3.439, allocations: 259.2 kB / 1.2 GB, free: 169.4 MB / 0.592 GB Notification: Performance of sorting global known variables: time 0.009777/3.449, allocations: 5.692 MB / 1.206 GB, free: 167.4 MB / 0.592 GB Notification: Performance of sort global known variables: time 4.6e-07/3.449, allocations: 0 / 1.206 GB, free: 167.4 MB / 0.592 GB Notification: Performance of remove unused functions: time 0.01409/3.463, allocations: 3.468 MB / 1.209 GB, free: 167 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.03916/3.502, allocations: 25.77 MB / 1.234 GB, free: 156.2 MB / 0.592 GB Notification: Performance of simCode: created initialization part: time 0.02334/3.526, allocations: 16.14 MB / 1.25 GB, free: 149.8 MB / 0.592 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-05/3.526, allocations: 1.484 kB / 1.25 GB, free: 149.8 MB / 0.592 GB Notification: Performance of simCode: created simulation system equations: time 0.01298/3.539, allocations: 8.766 MB / 1.258 GB, free: 145.9 MB / 0.592 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02108/3.56, allocations: 2.563 MB / 1.261 GB, free: 144.1 MB / 0.592 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2586/3.818, allocations: 128 MB / 1.386 GB, free: 15.38 MB / 0.592 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02598/3.845, allocations: 13.11 MB / 1.399 GB, free: 2.211 MB / 0.592 GB Notification: Performance of simCode: alias equations: time 0.01301/3.858, allocations: 3.989 MB / 1.403 GB, free: 14.21 MB / 0.6077 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3291/4.187, allocations: 7.821 MB / 1.41 GB, free: 190.1 MB / 0.6077 GB Notification: Performance of SimCode: time 1.112e-06/4.187, allocations: 0.5 kB / 1.41 GB, free: 190.1 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6499/4.837, allocations: 281.6 MB / 1.685 GB, free: 161.4 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate platform static: time 34.26/39.09, allocations: 13.59 kB / 1.685 GB, free: 161.4 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 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)