Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_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.001583/0.001583, allocations: 104.5 kB / 17.58 MB, free: 5.582 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.001829/0.001829, allocations: 191.8 kB / 18.51 MB, free: 4.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.265/2.265, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002236/0.002236, allocations: 52.16 kB / 282.2 MB, free: 1.66 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1498/0.152, allocations: 46.63 MB / 328.8 MB, free: 2.953 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.07728/0.2294, allocations: 49.5 MB / 378.3 MB, free: 1.23 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.3206/0.55, allocations: 12.92 MB / 391.2 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01751/0.5676, allocations: 325.5 kB / 391.6 MB, free: 11.49 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.05248/0.6202, allocations: 13.85 MB / 405.4 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02625/0.6465, allocations: 5.463 MB / 410.9 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01396/0.6605, allocations: 3.296 MB / 414.2 MB, free: 3.027 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.04644/0.707, allocations: 24.23 MB / 438.4 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1281/0.8351, allocations: 47.16 MB / 485.5 MB, free: 2.508 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03017/0.8654, allocations: 12.64 MB / 498.2 MB, free: 6.16 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03208/0.8975, allocations: 13.95 MB / 0.5001 GB, free: 8.629 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01499/0.9126, allocations: 3.637 MB / 0.5037 GB, free: 4.992 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0199/0.9325, allocations: 4.131 MB / 0.5077 GB, free: 0.8789 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01932/0.9519, allocations: 7.357 MB / 0.5149 GB, free: 9.613 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03571/0.9877, allocations: 13.86 MB / 0.5284 GB, free: 11.8 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5937/1.581, allocations: 48.36 MB / 0.5757 GB, free: 82.08 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/1.581, allocations: 0 / 0.5757 GB, free: 82.08 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.954e-06/1.581, allocations: 0.8125 kB / 0.5757 GB, free: 82.08 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001629/1.583, allocations: 0 / 0.5757 GB, free: 82.08 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5875 * Number of variables: 5875 Notification: Performance of Generate backend data structure: time 0.1502/1.733, allocations: 27.85 MB / 0.6029 GB, free: 66.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001074/1.733, allocations: 9.75 kB / 0.6029 GB, free: 66.66 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.02001/1.753, allocations: 3.013 MB / 0.6058 GB, free: 64.55 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1453/1.899, allocations: 14.88 MB / 0.6203 GB, free: 51.32 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0493/1.948, allocations: 13.35 MB / 0.6334 GB, free: 38.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002779/1.951, allocations: 1.586 MB / 0.6349 GB, free: 37.03 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01633/1.967, allocations: 2.097 MB / 0.637 GB, free: 34.96 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1393/2.107, allocations: 35.18 MB / 0.6713 GB, free: 15.73 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001828/2.109, allocations: 29.81 kB / 0.6714 GB, free: 15.71 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01613/2.125, allocations: 0.8631 MB / 0.6722 GB, free: 14.87 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001906/2.127, allocations: 1.185 MB / 0.6734 GB, free: 13.68 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1107/2.237, allocations: 33 MB / 0.7056 GB, free: 12.68 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6058/2.843, allocations: 109 MB / 0.812 GB, free: 96.23 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05291/2.896, allocations: 55.89 MB / 0.8666 GB, free: 36.66 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0189/2.915, allocations: 9.939 MB / 0.8763 GB, free: 26.67 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.432/3.347, allocations: 27.38 MB / 0.903 GB, free: 149 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002412/3.347, allocations: 135 kB / 0.9031 GB, free: 148.9 MB / 494.1 MB Notification: Performance of pre-optimization done (n=894): time 2.103e-05/3.348, allocations: 0 / 0.9031 GB, free: 148.9 MB / 494.1 MB Notification: Performance of matching and sorting (n=906): time 0.1281/3.476, allocations: 39.48 MB / 0.9417 GB, free: 139.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001259/3.476, allocations: 170.5 kB / 0.9419 GB, free: 139.2 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02602/3.502, allocations: 8.509 MB / 0.9502 GB, free: 135.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002421/3.504, allocations: 173.7 kB / 0.9503 GB, free: 135.4 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.009072/3.513, allocations: 8.836 MB / 0.959 GB, free: 127.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.006005/3.52, allocations: 3.062 MB / 0.962 GB, free: 124.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01275/3.532, allocations: 2.269 MB / 0.9642 GB, free: 122.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.24e-05/3.532, allocations: 303.1 kB / 0.9645 GB, free: 122.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0158/3.548, allocations: 6.299 MB / 0.9706 GB, free: 117.2 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02054/3.569, allocations: 10.27 MB / 0.9806 GB, free: 106.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03645/3.605, allocations: 17.62 MB / 0.9978 GB, free: 88.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001696/3.606, allocations: 36 kB / 0.9979 GB, free: 88.57 MB / 494.1 MB Notification: Performance of matching and sorting (n=1523) (initialization): time 0.0546/3.66, allocations: 20.64 MB / 1.018 GB, free: 70.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002311/3.66, allocations: 60 kB / 1.018 GB, free: 70.26 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002691/3.661, allocations: 128 kB / 1.018 GB, free: 70.14 MB / 494.1 MB 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.003706/3.664, allocations: 0.9361 MB / 1.019 GB, free: 69.18 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01465/3.679, allocations: 2.488 MB / 1.022 GB, free: 66.69 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01313/3.692, allocations: 12.48 MB / 1.034 GB, free: 53.55 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01496/3.707, allocations: 0.6212 MB / 1.034 GB, free: 52.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003107/3.71, allocations: 0.5389 MB / 1.035 GB, free: 52.39 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * 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 (1269): * Single equations (assignments): 1262 * 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,100.0%), (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.02207/3.733, allocations: 7.982 MB / 1.043 GB, free: 44.39 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00409/3.737, allocations: 0.9146 MB / 1.044 GB, free: 43.46 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04358/3.78, allocations: 17.08 MB / 1.06 GB, free: 26.25 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001204/3.78, allocations: 88 kB / 1.06 GB, free: 26.16 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001684/3.781, allocations: 44 kB / 1.06 GB, free: 26.12 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000291/3.781, allocations: 43.83 kB / 1.06 GB, free: 26.07 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4509/4.232, allocations: 36.07 MB / 1.096 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001489/4.232, allocations: 8.844 kB / 1.096 GB, free: 133.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01145/4.244, allocations: 1.428 MB / 1.097 GB, free: 133.1 MB / 494.1 MB 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.005618/4.249, allocations: 0.9678 MB / 1.098 GB, free: 133.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003027/4.252, allocations: 208.2 kB / 1.098 GB, free: 133.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02355/4.276, allocations: 17.07 MB / 1.115 GB, free: 121.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.177e-05/4.276, allocations: 11.78 kB / 1.115 GB, free: 121.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07105/4.347, allocations: 24.8 MB / 1.139 GB, free: 111.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008902/4.356, allocations: 2.256 MB / 1.141 GB, free: 111 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002957/4.359, allocations: 179.6 kB / 1.141 GB, free: 110.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008517/4.367, allocations: 495.6 kB / 1.142 GB, free: 110.4 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002427/4.37, allocations: 0.7937 MB / 1.143 GB, free: 110 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008949/4.371, allocations: 260.9 kB / 1.143 GB, free: 109.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.01405/4.385, allocations: 5.776 MB / 1.149 GB, free: 104.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.41e-07/4.385, allocations: 0 / 1.149 GB, free: 104.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.02299/4.408, allocations: 3.504 MB / 1.152 GB, free: 101.4 MB / 494.1 MB 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%), (2,26,100.0%), (1,1,100.0%), (1,8,100.0%), (1,13,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.0569/4.465, allocations: 25.75 MB / 1.177 GB, free: 79.47 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.1351/4.6, allocations: 36.27 MB / 1.213 GB, free: 45.32 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-05/4.6, allocations: 0 / 1.213 GB, free: 45.32 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.02135/4.621, allocations: 8.757 MB / 1.221 GB, free: 36.62 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02586/4.647, allocations: 2.563 MB / 1.224 GB, free: 34.05 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6631/5.311, allocations: 182.3 MB / 1.402 GB, free: 60.54 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02956/5.34, allocations: 13.2 MB / 1.415 GB, free: 47.3 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.0228/5.363, allocations: 4.017 MB / 1.419 GB, free: 43.29 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02071/5.384, allocations: 7.953 MB / 1.426 GB, free: 35.33 MB / 0.4982 GB Notification: Performance of SimCode: time 1.903e-06/5.384, allocations: 0 / 1.426 GB, free: 35.33 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.34/6.723, allocations: 287.3 MB / 1.707 GB, free: 125.1 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.98/30.7, allocations: 6.734 kB / 1.707 GB, free: 125.1 MB / 0.4982 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1)