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_YD.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_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",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.001212/0.001212, allocations: 113.6 kB / 17.73 MB, free: 5.203 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.001199/0.001199, allocations: 188.2 kB / 18.67 MB, free: 4.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.454/1.454, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001391/0.001391, allocations: 51.92 kB / 329.5 MB, free: 2.367 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1204, allocations: 46.61 MB / 376.1 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD): time 0.3483/0.4687, allocations: 36.6 MB / 412.7 MB, free: 4.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02902/0.4978, allocations: 9.758 MB / 422.4 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01058/0.5084, allocations: 227.9 kB / 422.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02503/0.5336, allocations: 9.748 MB / 432.4 MB, free: 5.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01741/0.551, allocations: 4.187 MB / 436.6 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008204/0.5592, allocations: 2.452 MB / 439 MB, free: 12 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02503/0.5843, allocations: 17.09 MB / 456.1 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05196/0.6363, allocations: 31.23 MB / 487.4 MB, free: 15.37 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01794/0.6543, allocations: 8.801 MB / 496.2 MB, free: 6.543 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01865/0.673, allocations: 9.609 MB / 0.4939 GB, free: 12.9 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008324/0.6813, allocations: 2.512 MB / 0.4964 GB, free: 10.39 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01342/0.6948, allocations: 2.894 MB / 0.4992 GB, free: 7.496 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009931/0.7048, allocations: 5.027 MB / 0.5041 GB, free: 2.457 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02419/0.729, allocations: 9.487 MB / 0.5134 GB, free: 8.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04885/0.7779, allocations: 33.28 MB / 0.5459 GB, free: 7.547 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.243e-05/0.778, allocations: 0 / 0.5459 GB, free: 7.547 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.778, allocations: 0 / 0.5459 GB, free: 7.547 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.001348/0.7793, allocations: 0 / 0.5459 GB, free: 7.547 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3951 * Number of variables: 3951 Notification: Performance of Generate backend data structure: time 0.5722/1.352, allocations: 19.67 MB / 0.5651 GB, free: 132 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.023e-05/1.352, allocations: 13.36 kB / 0.5651 GB, free: 132 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01093/1.363, allocations: 2.023 MB / 0.5671 GB, free: 130.9 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05822/1.421, allocations: 9.805 MB / 0.5766 GB, free: 126.9 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02674/1.448, allocations: 9.517 MB / 0.5859 GB, free: 120.1 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001283/1.449, allocations: 1.066 MB / 0.587 GB, free: 119 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007978/1.457, allocations: 1.413 MB / 0.5884 GB, free: 117.6 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07158/1.529, allocations: 23.58 MB / 0.6114 GB, free: 93.95 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008198/1.529, allocations: 15.91 kB / 0.6114 GB, free: 93.94 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006192/1.536, allocations: 0.5776 MB / 0.612 GB, free: 93.37 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006714/1.536, allocations: 0.8029 MB / 0.6128 GB, free: 92.57 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04809/1.584, allocations: 22.21 MB / 0.6344 GB, free: 70.33 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1434/1.728, allocations: 74.25 MB / 0.707 GB, free: 11.55 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04248/1.77, allocations: 38.09 MB / 0.7442 GB, free: 1.648 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01374/1.784, allocations: 6.509 MB / 0.7505 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3603/2.145, allocations: 18.24 MB / 0.7683 GB, free: 177.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001077/2.145, allocations: 96.27 kB / 0.7684 GB, free: 177.5 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=581): time 9.588e-06/2.145, allocations: 0 / 0.7684 GB, free: 177.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=589): time 0.09594/2.241, allocations: 37.55 MB / 0.8051 GB, free: 164.7 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.709e-05/2.241, allocations: 143.6 kB / 0.8052 GB, free: 164.6 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009639/2.251, allocations: 6.08 MB / 0.8112 GB, free: 161.8 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001309/2.252, allocations: 123.3 kB / 0.8113 GB, free: 161.7 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003461/2.255, allocations: 6.336 MB / 0.8175 GB, free: 157 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002515/2.258, allocations: 2.091 MB / 0.8195 GB, free: 155 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002349/2.26, allocations: 1.605 MB / 0.8211 GB, free: 153.4 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 7.463e-05/2.26, allocations: 301.1 kB / 0.8214 GB, free: 153.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005527/2.266, allocations: 4.232 MB / 0.8255 GB, free: 148.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006712/2.273, allocations: 7.149 MB / 0.8325 GB, free: 140.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01259/2.285, allocations: 12.06 MB / 0.8442 GB, free: 127 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.718e-05/2.285, allocations: 28 kB / 0.8443 GB, free: 127 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1051) (initialization): time 0.02552/2.311, allocations: 14.3 MB / 0.8582 GB, free: 112.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001294/2.311, allocations: 44 kB / 0.8583 GB, free: 112.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001921/2.311, allocations: 96.84 kB / 0.8584 GB, free: 112.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007184/2.318, allocations: 2.768 MB / 0.8611 GB, free: 109.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006777/2.325, allocations: 1.689 MB / 0.8627 GB, free: 108 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0363/2.362, allocations: 31.64 MB / 0.8936 GB, free: 75.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01006/2.372, allocations: 439.6 kB / 0.894 GB, free: 75.14 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003384/2.375, allocations: 388 kB / 0.8944 GB, free: 74.77 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 429 * Number of states: 0 () * Number of discrete variables: 12 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],booleanStepYDQS[3].y,booleanStepYDQS[2].y,booleanStepYDQS[1].y,booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (881): * Single equations (assignments): 874 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 6 * 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): 6 systems {(1,8,100.0%), (9,19,33.3%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%), (24,96,32.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01324/2.388, allocations: 5.43 MB / 0.8997 GB, free: 69.32 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002645/2.391, allocations: 0.6676 MB / 0.9004 GB, free: 68.65 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02142/2.412, allocations: 11.57 MB / 0.9117 GB, free: 56.98 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.02e-05/2.413, allocations: 63.83 kB / 0.9117 GB, free: 56.92 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.201e-05/2.413, allocations: 28 kB / 0.9117 GB, free: 56.89 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.481e-05/2.413, allocations: 27.89 kB / 0.9118 GB, free: 56.87 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05461/2.467, allocations: 24.42 MB / 0.9356 GB, free: 32.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.747e-05/2.467, allocations: 8 kB / 0.9356 GB, free: 32.33 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004376/2.472, allocations: 0.8659 MB / 0.9365 GB, free: 31.46 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007659/2.48, allocations: 2.807 MB / 0.9392 GB, free: 28.64 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001276/2.481, allocations: 132.8 kB / 0.9393 GB, free: 28.51 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3122/2.793, allocations: 34.61 MB / 0.9731 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.375e-06/2.793, allocations: 11.59 kB / 0.9732 GB, free: 157.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02761/2.821, allocations: 16.92 MB / 0.9897 GB, free: 150.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004441/2.825, allocations: 1.596 MB / 0.9912 GB, free: 149.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001357/2.827, allocations: 126.6 kB / 0.9914 GB, free: 149.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00343/2.83, allocations: 311.3 kB / 0.9917 GB, free: 149.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001291/2.831, allocations: 0.5011 MB / 0.9921 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003699/2.832, allocations: 172.1 kB / 0.9923 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005938/2.838, allocations: 4.102 MB / 0.9963 GB, free: 148.1 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.61e-07/2.838, allocations: 0 / 0.9963 GB, free: 148.1 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01049/2.848, allocations: 2.597 MB / 0.9988 GB, free: 147.8 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (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,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (446): * Single equations (assignments): 438 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,1,100.0%), (24,96,34.7%), (1,1,100.0%), (1,8,100.0%), (9,19,33.3%), (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.02402/2.872, allocations: 17.69 MB / 1.016 GB, free: 137.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01831/2.891, allocations: 11.98 MB / 1.028 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/2.891, allocations: 5.938 kB / 1.028 GB, free: 127.3 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.01069/2.901, allocations: 7.029 MB / 1.035 GB, free: 121.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0119/2.913, allocations: 1.736 MB / 1.036 GB, free: 119.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1764/3.09, allocations: 88.97 MB / 1.123 GB, free: 27.91 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01853/3.108, allocations: 9.137 MB / 1.132 GB, free: 18.73 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.009518/3.118, allocations: 2.633 MB / 1.135 GB, free: 16.09 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009817/3.128, allocations: 5.201 MB / 1.14 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of SimCode: time 2.445e-06/3.128, allocations: 0 / 1.14 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5893/3.717, allocations: 209.5 MB / 1.344 GB, free: 20.16 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.65/30.37, allocations: 19.91 kB / 1.344 GB, free: 20.14 MB / 0.545 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_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_YD.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe 2>&1)