Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_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/Complex 3.2.3+maint.om/package.mo): time 0.0009739/0.0009739, allocations: 174.5 kB / 16.72 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.206/1.206, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007836/0.0007835, allocations: 99.62 kB / 271.2 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002897/0.0002897, allocations: 12 kB / 327.6 MB, free: 15.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1864/0.1867, allocations: 47.57 MB / 375.2 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD): time 0.0221/0.2088, allocations: 32.15 MB / 407.4 MB, free: 16.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01522/0.2241, allocations: 9.083 MB / 416.5 MB, free: 7.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005294/0.2294, allocations: 211.2 kB / 416.7 MB, free: 7.133 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004721/0.2341, allocations: 1.798 MB / 418.5 MB, free: 5.324 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009225/0.2434, allocations: 3.447 MB / 421.9 MB, free: 1.867 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004519/0.2479, allocations: 1.699 MB / 423.6 MB, free: 184 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.02264/0.2706, allocations: 19.58 MB / 443.2 MB, free: 12.54 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04261/0.3132, allocations: 28.53 MB / 471.7 MB, free: 15.83 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008567/0.3218, allocations: 6.249 MB / 478 MB, free: 9.562 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01002/0.3319, allocations: 7.152 MB / 485.1 MB, free: 2.383 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002424/0.3343, allocations: 0.9648 MB / 486.1 MB, free: 1.418 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004182/0.3385, allocations: 1.339 MB / 487.4 MB, free: 80 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002534/0.3411, allocations: 3.138 MB / 490.6 MB, free: 12.93 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008644/0.3497, allocations: 7.181 MB / 497.7 MB, free: 5.707 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3034/0.6532, allocations: 27.95 MB / 0.5134 GB, free: 38.62 MB / 378.8 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.6532, allocations: 0.5625 kB / 0.5134 GB, free: 38.62 MB / 378.8 MB Notification: Performance of FrontEnd: time 2.865e-06/0.6532, allocations: 0.5938 kB / 0.5134 GB, free: 38.62 MB / 378.8 MB Notification: Performance of Transformations before backend: time 0.0007769/0.654, allocations: 0 / 0.5134 GB, free: 38.62 MB / 378.8 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.04027/0.6943, allocations: 16.1 MB / 0.5291 GB, free: 30.74 MB / 378.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.6943, allocations: 9.094 kB / 0.5291 GB, free: 30.74 MB / 378.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006272/0.7006, allocations: 2.028 MB / 0.5311 GB, free: 30.24 MB / 378.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0457/0.7463, allocations: 9.719 MB / 0.5406 GB, free: 25.81 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01743/0.7638, allocations: 9.436 MB / 0.5498 GB, free: 20.27 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006944/0.7645, allocations: 1.069 MB / 0.5508 GB, free: 19.66 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004477/0.769, allocations: 1.41 MB / 0.5522 GB, free: 18.72 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04807/0.8171, allocations: 23.49 MB / 0.5752 GB, free: 3.891 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003573/0.8175, allocations: 16.33 kB / 0.5752 GB, free: 3.875 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002666/0.8202, allocations: 0.583 MB / 0.5757 GB, free: 3.309 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009584/0.8211, allocations: 0.8069 MB / 0.5765 GB, free: 2.5 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04125/0.8624, allocations: 22.12 MB / 0.5981 GB, free: 12.38 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3002/1.163, allocations: 75.26 MB / 0.6716 GB, free: 117.9 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0244/1.187, allocations: 38.06 MB / 0.7088 GB, free: 89.26 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008423/1.196, allocations: 6.476 MB / 0.7151 GB, free: 89.16 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02534/1.221, allocations: 18.31 MB / 0.733 GB, free: 83.39 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.183e-05/1.221, allocations: 95.95 kB / 0.7331 GB, free: 83.31 MB / 458.8 MB Notification: Performance of pre-optimization done (n=581): time 6.913e-06/1.221, allocations: 3.906 kB / 0.7331 GB, free: 83.31 MB / 458.8 MB Notification: Performance of matching and sorting (n=589): time 0.08214/1.303, allocations: 36.89 MB / 0.7691 GB, free: 53.68 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.247e-05/1.303, allocations: 137.8 kB / 0.7692 GB, free: 53.52 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007935/1.311, allocations: 6.029 MB / 0.7751 GB, free: 47.47 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0009615/1.312, allocations: 121.7 kB / 0.7752 GB, free: 47.35 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002582/1.315, allocations: 6.118 MB / 0.7812 GB, free: 41.2 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001819/1.317, allocations: 2 MB / 0.7832 GB, free: 39.21 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004808/1.317, allocations: 171.9 kB / 0.7833 GB, free: 39.05 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0003427/1.317, allocations: 0.6333 MB / 0.784 GB, free: 38.41 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005474/1.323, allocations: 4.217 MB / 0.7881 GB, free: 34.18 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006152/1.329, allocations: 7.144 MB / 0.7951 GB, free: 25.7 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01229/1.341, allocations: 12.04 MB / 0.8068 GB, free: 12.32 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.892e-05/1.342, allocations: 28 kB / 0.8068 GB, free: 12.3 MB / 458.8 MB Notification: Performance of matching and sorting (n=1051) (initialization): time 0.02075/1.362, allocations: 14.24 MB / 0.8207 GB, free: 13.99 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.296e-05/1.362, allocations: 44 kB / 0.8208 GB, free: 13.95 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001218/1.363, allocations: 96 kB / 0.8209 GB, free: 13.86 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007068/1.37, allocations: 2.769 MB / 0.8236 GB, free: 11.07 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006479/1.376, allocations: 1.692 MB / 0.8252 GB, free: 9.371 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.231/1.607, allocations: 29.27 MB / 0.8538 GB, free: 138 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006245/1.613, allocations: 450.8 kB / 0.8542 GB, free: 137.9 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008166/1.614, allocations: 388.1 kB / 0.8546 GB, free: 137.8 MB / 474.8 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.008313/1.623, allocations: 5.417 MB / 0.8599 GB, free: 135.3 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001145/1.624, allocations: 0.6371 MB / 0.8605 GB, free: 135.3 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01689/1.641, allocations: 11.56 MB / 0.8718 GB, free: 130.6 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.796e-05/1.641, allocations: 62.28 kB / 0.8719 GB, free: 130.6 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.173e-05/1.641, allocations: 32.25 kB / 0.8719 GB, free: 130.5 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.92e-05/1.641, allocations: 31.81 kB / 0.8719 GB, free: 130.5 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03533/1.676, allocations: 24.44 MB / 0.8958 GB, free: 117.6 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.895e-05/1.676, allocations: 4 kB / 0.8958 GB, free: 117.6 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003536/1.68, allocations: 0.8739 MB / 0.8967 GB, free: 116.8 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006434/1.686, allocations: 2.811 MB / 0.8994 GB, free: 114.7 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006831/1.687, allocations: 141.7 kB / 0.8996 GB, free: 114.6 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03142/1.718, allocations: 31.86 MB / 0.9307 GB, free: 82.62 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/1.718, allocations: 11.94 kB / 0.9307 GB, free: 82.61 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02237/1.741, allocations: 16.87 MB / 0.9471 GB, free: 65.76 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003609/1.744, allocations: 1.582 MB / 0.9487 GB, free: 64.15 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009906/1.745, allocations: 116 kB / 0.9488 GB, free: 64.04 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003055/1.748, allocations: 328.9 kB / 0.9491 GB, free: 63.72 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001333/1.75, allocations: 0.4931 MB / 0.9496 GB, free: 63.22 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003676/1.75, allocations: 172 kB / 0.9498 GB, free: 63.05 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.005301/1.756, allocations: 4.053 MB / 0.9537 GB, free: 59 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.61e-07/1.756, allocations: 4 kB / 0.9537 GB, free: 59 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.008694/1.764, allocations: 2.594 MB / 0.9563 GB, free: 56.4 MB / 474.8 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.02279/1.787, allocations: 17.66 MB / 0.9735 GB, free: 38.42 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01808/1.805, allocations: 11.9 MB / 0.9851 GB, free: 26.42 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.122e-05/1.805, allocations: 0.9375 kB / 0.9851 GB, free: 26.42 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01127/1.816, allocations: 7.007 MB / 0.992 GB, free: 19.31 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01572/1.832, allocations: 1.634 MB / 0.9936 GB, free: 17.69 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3302/2.162, allocations: 80.86 MB / 1.073 GB, free: 122.3 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01381/2.176, allocations: 8.851 MB / 1.081 GB, free: 115.3 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008113/2.184, allocations: 5.26 MB / 1.086 GB, free: 110 MB / 474.8 MB Notification: Performance of SimCode: time 1.102e-06/2.184, allocations: 0 / 1.086 GB, free: 110 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 14.43/16.61, allocations: 0.82 GB / 1.906 GB, free: 122.7 MB / 474.8 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe 2>&1)