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: 95.61 kB / 16.95 MB, free: 6.445 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.001864/0.001864, allocations: 183.8 kB / 17.84 MB, free: 6.008 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.568/1.568, allocations: 205.4 MB / 224 MB, free: 13.16 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.0006904/0.0006906, allocations: 15.98 kB / 282.2 MB, free: 2.27 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1123/0.113, allocations: 47.58 MB / 329.8 MB, free: 2.617 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD): time 0.03382/0.1469, allocations: 32.02 MB / 361.8 MB, free: 2.492 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02096/0.1679, allocations: 9.07 MB / 370.9 MB, free: 9.395 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007467/0.1754, allocations: 211.2 kB / 371.1 MB, free: 9.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007814/0.1833, allocations: 1.798 MB / 372.9 MB, free: 7.379 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01464/0.198, allocations: 3.421 MB / 376.3 MB, free: 3.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008124/0.2061, allocations: 1.692 MB / 378 MB, free: 2.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2471/0.4532, allocations: 19.45 MB / 397.5 MB, free: 13.97 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04278/0.4961, allocations: 24.52 MB / 422 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01373/0.5099, allocations: 6.27 MB / 428.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01625/0.5262, allocations: 7.145 MB / 435.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005001/0.5312, allocations: 0.9688 MB / 436.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009052/0.5403, allocations: 1.316 MB / 437.7 MB, free: 9.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006542/0.5469, allocations: 3.132 MB / 440.8 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009017/0.556, allocations: 3.174 MB / 444 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03803/0.594, allocations: 27.96 MB / 472 MB, free: 8.266 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.048e-05/0.5941, allocations: 0 / 472 MB, free: 8.266 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.857e-06/0.5941, allocations: 2.406 kB / 472 MB, free: 8.266 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.001147/0.5952, allocations: 0 / 472 MB, free: 8.266 MB / 366.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.05711/0.6524, allocations: 16.25 MB / 488.2 MB, free: 8.121 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.99e-05/0.6525, allocations: 8.031 kB / 488.2 MB, free: 8.113 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01205/0.6645, allocations: 2.031 MB / 490.2 MB, free: 6.086 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05546/0.72, allocations: 9.723 MB / 500 MB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02525/0.7453, allocations: 9.273 MB / 0.4973 GB, free: 3.223 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001455/0.7469, allocations: 1.063 MB / 0.4983 GB, free: 2.168 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006753/0.7536, allocations: 1.413 MB / 0.4997 GB, free: 0.7695 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0687/0.8224, allocations: 23.49 MB / 0.5227 GB, free: 9.219 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000818/0.8232, allocations: 19.83 kB / 0.5227 GB, free: 9.199 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005077/0.8283, allocations: 0.5881 MB / 0.5233 GB, free: 8.625 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009449/0.8293, allocations: 0.7952 MB / 0.524 GB, free: 7.828 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4575/1.287, allocations: 22.12 MB / 0.5456 GB, free: 111.2 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1165/1.403, allocations: 75.21 MB / 0.6191 GB, free: 53.63 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02804/1.431, allocations: 38.06 MB / 0.6562 GB, free: 11.79 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009295/1.441, allocations: 6.475 MB / 0.6626 GB, free: 5.301 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0339/1.475, allocations: 18.3 MB / 0.6804 GB, free: 3.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.483e-05/1.475, allocations: 111.1 kB / 0.6805 GB, free: 2.953 MB / 446.1 MB Notification: Performance of pre-optimization done (n=581): time 6.652e-06/1.475, allocations: 0 / 0.6805 GB, free: 2.953 MB / 446.1 MB Notification: Performance of matching and sorting (n=589): time 0.3539/1.829, allocations: 39.66 MB / 0.7193 GB, free: 151.2 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.487e-05/1.829, allocations: 142.6 kB / 0.7194 GB, free: 151.1 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01087/1.84, allocations: 6.025 MB / 0.7253 GB, free: 149.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001275/1.841, allocations: 121.5 kB / 0.7254 GB, free: 149.2 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00369/1.845, allocations: 6.124 MB / 0.7314 GB, free: 145.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002493/1.847, allocations: 1.991 MB / 0.7333 GB, free: 144.2 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000601/1.848, allocations: 164.8 kB / 0.7335 GB, free: 144.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000417/1.848, allocations: 0.638 MB / 0.7341 GB, free: 143.6 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006216/1.855, allocations: 4.218 MB / 0.7382 GB, free: 142 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007529/1.862, allocations: 7.144 MB / 0.7452 GB, free: 136.7 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007922/1.87, allocations: 5.665 MB / 0.7507 GB, free: 134.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.519e-05/1.87, allocations: 27.25 kB / 0.7508 GB, free: 134.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=1051) (initialization): time 0.02384/1.894, allocations: 14.22 MB / 0.7647 GB, free: 128.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.802e-05/1.894, allocations: 45.22 kB / 0.7647 GB, free: 128.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001723/1.894, allocations: 100 kB / 0.7648 GB, free: 128.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006326/1.901, allocations: 2.777 MB / 0.7675 GB, free: 127.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006648/1.907, allocations: 1.689 MB / 0.7692 GB, free: 127.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03142/1.939, allocations: 29.28 MB / 0.7978 GB, free: 102.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007058/1.946, allocations: 451.4 kB / 0.7982 GB, free: 101.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00134/1.947, allocations: 388 kB / 0.7986 GB, free: 101.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 429 * Number of states: 0 () * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].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 (linear and non-linear blocks): 1 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1,(24,33.0%) 96} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01011/1.957, allocations: 5.42 MB / 0.8038 GB, free: 95.84 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001766/1.959, allocations: 0.6445 MB / 0.8045 GB, free: 95.19 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01794/1.977, allocations: 11.57 MB / 0.8158 GB, free: 83.52 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.008e-05/1.977, allocations: 64 kB / 0.8158 GB, free: 83.46 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.337e-05/1.977, allocations: 31.94 kB / 0.8159 GB, free: 83.43 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001181/1.977, allocations: 35.84 kB / 0.8159 GB, free: 83.39 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04079/2.018, allocations: 24.43 MB / 0.8398 GB, free: 58.87 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.44e-05/2.018, allocations: 8.031 kB / 0.8398 GB, free: 58.86 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003628/2.022, allocations: 0.8698 MB / 0.8406 GB, free: 57.99 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006291/2.028, allocations: 2.809 MB / 0.8434 GB, free: 55.16 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008228/2.029, allocations: 136 kB / 0.8435 GB, free: 55.03 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03325/2.062, allocations: 31.85 MB / 0.8746 GB, free: 22.15 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/2.062, allocations: 8 kB / 0.8746 GB, free: 22.14 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2976/2.36, allocations: 16.86 MB / 0.8911 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007322/2.367, allocations: 1.576 MB / 0.8926 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003316/2.371, allocations: 119.2 kB / 0.8927 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006378/2.377, allocations: 326.9 kB / 0.893 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002219/2.379, allocations: 0.4939 MB / 0.8935 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006222/2.38, allocations: 167 kB / 0.8937 GB, free: 132.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01228/2.392, allocations: 4.062 MB / 0.8976 GB, free: 132.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.643e-06/2.392, allocations: 3.781 kB / 0.8977 GB, free: 132.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01703/2.409, allocations: 2.587 MB / 0.9002 GB, free: 132.6 MB / 478.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(24,32.3%) 96,(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03188/2.441, allocations: 17.66 MB / 0.9174 GB, free: 125.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02531/2.467, allocations: 11.91 MB / 0.9291 GB, free: 120.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-05/2.467, allocations: 2.5 kB / 0.9291 GB, free: 120.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01446/2.481, allocations: 6.999 MB / 0.9359 GB, free: 116.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01354/2.495, allocations: 1.663 MB / 0.9375 GB, free: 116.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1861/2.681, allocations: 81.49 MB / 1.017 GB, free: 38.55 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01719/2.698, allocations: 9.132 MB / 1.026 GB, free: 29.38 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.01087/2.709, allocations: 2.636 MB / 1.029 GB, free: 26.74 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01006/2.719, allocations: 5.193 MB / 1.034 GB, free: 21.55 MB / 478.1 MB Notification: Performance of SimCode: time 1.262e-06/2.719, allocations: 0 / 1.034 GB, free: 21.55 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5145/3.234, allocations: 201.7 MB / 1.231 GB, free: 4.73 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003611/3.234, allocations: 259.4 kB / 1.231 GB, free: 4.387 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.475/10.71, allocations: 3.953 kB / 1.231 GB, free: 4.383 MB / 494.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 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) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat does not exist to compare? outputFormat=mat