Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001883/0.001883, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002274/0.002274, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002045/0.002045, allocations: 55.47 kB / 308.5 MB, free: 15.13 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1261, allocations: 50.54 MB / 359 MB, free: 12.6 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.2109/0.337, allocations: 50.1 MB / 409.1 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03194/0.369, allocations: 13.14 MB / 422.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01125/0.3803, allocations: 383.9 kB / 422.6 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03181/0.4122, allocations: 13.86 MB / 436.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02325/0.4355, allocations: 5.429 MB / 441.9 MB, free: 8.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0109/0.4464, allocations: 3.355 MB / 445.3 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.03048/0.4769, allocations: 24.19 MB / 469.4 MB, free: 12.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08746/0.5644, allocations: 47.26 MB / 0.5046 GB, free: 13.29 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02328/0.5877, allocations: 12.6 MB / 0.5169 GB, free: 0.6914 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02451/0.6123, allocations: 14.01 MB / 0.5306 GB, free: 2.637 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.4499/1.062, allocations: 3.628 MB / 0.5341 GB, free: 63.85 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0168/1.079, allocations: 4.143 MB / 0.5382 GB, free: 63.85 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01374/1.093, allocations: 7.291 MB / 0.5453 GB, free: 63.85 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03076/1.124, allocations: 13.8 MB / 0.5588 GB, free: 61.96 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04632/1.17, allocations: 48.48 MB / 0.6061 GB, free: 36.16 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/1.17, allocations: 3.938 kB / 0.6061 GB, free: 36.16 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.943e-06/1.17, allocations: 0 / 0.6061 GB, free: 36.16 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001548/1.172, allocations: 0.8125 kB / 0.6061 GB, free: 36.16 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: 5818 * Number of variables: 5818 Notification: Performance of Generate backend data structure: time 0.09273/1.264, allocations: 27.72 MB / 0.6332 GB, free: 13.72 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/1.264, allocations: 8.031 kB / 0.6332 GB, free: 13.71 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01249/1.277, allocations: 2.986 MB / 0.6361 GB, free: 10.73 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0756/1.353, allocations: 13.93 MB / 0.6497 GB, free: 12.92 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0341/1.387, allocations: 14.59 MB / 0.664 GB, free: 14.89 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002069/1.389, allocations: 1.58 MB / 0.6655 GB, free: 13.33 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00901/1.398, allocations: 2.077 MB / 0.6675 GB, free: 11.27 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09509/1.493, allocations: 34.72 MB / 0.7014 GB, free: 8.484 MB / 0.4982 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001025/1.494, allocations: 27.8 kB / 0.7015 GB, free: 8.457 MB / 0.4982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007599/1.502, allocations: 0.8526 MB / 0.7023 GB, free: 7.621 MB / 0.4982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001317/1.503, allocations: 1.161 MB / 0.7034 GB, free: 6.461 MB / 0.4982 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2983/1.801, allocations: 32.32 MB / 0.735 GB, free: 147.7 MB / 0.4982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1776/1.979, allocations: 108.3 MB / 0.8408 GB, free: 57.2 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03583/2.015, allocations: 50.89 MB / 0.8905 GB, free: 2.891 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01577/2.031, allocations: 9.778 MB / 0.9 GB, free: 9.066 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2643/2.295, allocations: 22.86 MB / 0.9223 GB, free: 148.7 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.254e-05/2.295, allocations: 133.2 kB / 0.9225 GB, free: 148.6 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=894): time 1.118e-05/2.295, allocations: 3.438 kB / 0.9225 GB, free: 148.6 MB / 0.5138 GB Notification: Performance of matching and sorting (n=906): time 0.07662/2.372, allocations: 39.51 MB / 0.961 GB, free: 132.7 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.024e-05/2.372, allocations: 179.6 kB / 0.9612 GB, free: 132.6 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01534/2.387, allocations: 8.387 MB / 0.9694 GB, free: 129.5 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001761/2.389, allocations: 172.2 kB / 0.9696 GB, free: 129.4 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.005/2.394, allocations: 8.706 MB / 0.9781 GB, free: 122.9 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.003304/2.397, allocations: 3.052 MB / 0.9811 GB, free: 120.5 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003933/2.401, allocations: 2.211 MB / 0.9832 GB, free: 119.5 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.939e-05/2.401, allocations: 301.1 kB / 0.9835 GB, free: 119.2 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009093/2.41, allocations: 6.251 MB / 0.9896 GB, free: 116.4 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01194/2.422, allocations: 9.972 MB / 0.9993 GB, free: 106 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02053/2.443, allocations: 17.24 MB / 1.016 GB, free: 88.64 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001116/2.443, allocations: 32 kB / 1.016 GB, free: 88.61 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.03486/2.478, allocations: 20.33 MB / 1.036 GB, free: 70.92 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/2.478, allocations: 56 kB / 1.036 GB, free: 70.87 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001971/2.478, allocations: 119.8 kB / 1.036 GB, free: 70.75 MB / 0.5138 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.002734/2.481, allocations: 0.9284 MB / 1.037 GB, free: 70 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009851/2.491, allocations: 2.413 MB / 1.04 GB, free: 67.95 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009206/2.5, allocations: 12.46 MB / 1.052 GB, free: 55.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01092/2.511, allocations: 0.6134 MB / 1.052 GB, free: 55.2 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002415/2.514, allocations: 0.5109 MB / 1.053 GB, free: 54.71 MB / 0.5138 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.01441/2.528, allocations: 7.924 MB / 1.061 GB, free: 47.28 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002296/2.53, allocations: 0.9108 MB / 1.061 GB, free: 46.36 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02544/2.556, allocations: 17.06 MB / 1.078 GB, free: 29.16 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.599e-05/2.556, allocations: 92 kB / 1.078 GB, free: 29.07 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.03e-05/2.556, allocations: 43.94 kB / 1.078 GB, free: 29.03 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001116/2.556, allocations: 43.83 kB / 1.078 GB, free: 28.98 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2989/2.855, allocations: 36 MB / 1.113 GB, free: 136.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.306e-05/2.855, allocations: 12.89 kB / 1.113 GB, free: 136.6 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006906/2.862, allocations: 1.428 MB / 1.115 GB, free: 136.5 MB / 0.5138 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.003833/2.866, allocations: 0.9845 MB / 1.116 GB, free: 136.4 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00166/2.868, allocations: 202.7 kB / 1.116 GB, free: 136.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01312/2.881, allocations: 17.12 MB / 1.133 GB, free: 123.6 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/2.881, allocations: 11.75 kB / 1.133 GB, free: 123.6 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04258/2.923, allocations: 24.81 MB / 1.157 GB, free: 113.4 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005883/2.929, allocations: 2.246 MB / 1.159 GB, free: 112.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00248/2.932, allocations: 177.5 kB / 1.159 GB, free: 112.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006489/2.938, allocations: 495 kB / 1.16 GB, free: 112.4 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002056/2.94, allocations: 0.7926 MB / 1.161 GB, free: 112.3 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006458/2.941, allocations: 261.3 kB / 1.161 GB, free: 112.2 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.01029/2.951, allocations: 5.708 MB / 1.166 GB, free: 110.1 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.41e-07/2.951, allocations: 0 / 1.166 GB, free: 110.1 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01664/2.968, allocations: 3.479 MB / 1.17 GB, free: 109.8 MB / 0.5138 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,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.03906/3.007, allocations: 25.78 MB / 1.195 GB, free: 88.81 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.07617/3.083, allocations: 36.14 MB / 1.23 GB, free: 54.79 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.409e-05/3.083, allocations: 0.5938 kB / 1.23 GB, free: 54.79 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.01536/3.099, allocations: 8.773 MB / 1.239 GB, free: 47.14 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01412/3.113, allocations: 2.561 MB / 1.241 GB, free: 44.99 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4646/3.577, allocations: 179.1 MB / 1.416 GB, free: 90.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01821/3.596, allocations: 13.13 MB / 1.429 GB, free: 78.38 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.01144/3.607, allocations: 3.996 MB / 1.433 GB, free: 74.39 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01123/3.618, allocations: 7.826 MB / 1.441 GB, free: 66.56 MB / 0.5294 GB Notification: Performance of SimCode: time 1.223e-06/3.618, allocations: 0 / 1.441 GB, free: 66.56 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.823/4.441, allocations: 285.6 MB / 1.719 GB, free: 115.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.26/19.71, allocations: 3.297 kB / 1.719 GB, free: 115.7 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1)