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.0009202/0.0009201, allocations: 95.33 kB / 16.93 MB, free: 5.984 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.0009676/0.0009679, allocations: 177.9 kB / 17.82 MB, free: 5.652 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.367/1.367, 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.0006709/0.0006709, allocations: 12.22 kB / 282.2 MB, free: 2.297 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1035, allocations: 47.58 MB / 329.8 MB, free: 2.645 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD): time 0.03124/0.1348, allocations: 29.26 MB / 359 MB, free: 5.289 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02069/0.1556, allocations: 9.432 MB / 368.5 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007435/0.1631, allocations: 207.2 kB / 368.7 MB, free: 11.63 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007868/0.1709, allocations: 1.939 MB / 370.6 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01333/0.1843, allocations: 3.447 MB / 374.1 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006775/0.1911, allocations: 1.718 MB / 375.8 MB, free: 4.508 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.216/0.4071, allocations: 13.95 MB / 389.7 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04486/0.452, allocations: 24.29 MB / 414 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0114/0.4634, allocations: 5.81 MB / 419.8 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01083/0.4743, allocations: 6.456 MB / 426.3 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003609/0.4779, allocations: 0.9609 MB / 427.2 MB, free: 2.695 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006443/0.4844, allocations: 1.27 MB / 428.5 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005305/0.4897, allocations: 3.022 MB / 431.5 MB, free: 216 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00991/0.4996, allocations: 3.173 MB / 434.7 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03443/0.5341, allocations: 27.88 MB / 462.6 MB, free: 4.039 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.5342, allocations: 0 / 462.6 MB, free: 4.039 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.307e-06/0.5342, allocations: 0 / 462.6 MB, free: 4.039 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.001089/0.5353, allocations: 0 / 462.6 MB, free: 4.039 MB / 350.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.05137/0.5867, allocations: 16.17 MB / 478.7 MB, free: 3.973 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.5867, allocations: 8.031 kB / 478.8 MB, free: 3.965 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008372/0.5951, allocations: 2.029 MB / 480.8 MB, free: 1.941 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05319/0.6483, allocations: 9.642 MB / 490.4 MB, free: 8.383 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02333/0.6717, allocations: 9.301 MB / 499.7 MB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001181/0.6729, allocations: 1.065 MB / 0.4891 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006316/0.6792, allocations: 1.406 MB / 0.4904 GB, free: 12.69 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06357/0.7428, allocations: 23.36 MB / 0.5132 GB, free: 5.25 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000547/0.7434, allocations: 23.75 kB / 0.5133 GB, free: 5.227 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0045/0.7479, allocations: 0.5795 MB / 0.5138 GB, free: 4.664 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008588/0.7488, allocations: 0.8068 MB / 0.5146 GB, free: 3.855 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4034/1.152, allocations: 22.13 MB / 0.5362 GB, free: 110 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1219/1.274, allocations: 75.15 MB / 0.6096 GB, free: 61.87 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02525/1.299, allocations: 38.05 MB / 0.6468 GB, free: 23.4 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02839/1.328, allocations: 17.65 MB / 0.664 GB, free: 5.809 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.305e-05/1.328, allocations: 95.88 kB / 0.6641 GB, free: 5.707 MB / 430.1 MB Notification: Performance of pre-optimization done (n=589): time 7.334e-06/1.328, allocations: 0 / 0.6641 GB, free: 5.707 MB / 430.1 MB Notification: Performance of matching and sorting (n=597): time 0.0904/1.418, allocations: 36.6 MB / 0.6998 GB, free: 0.793 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.278e-05/1.419, allocations: 138.5 kB / 0.7 GB, free: 0.6367 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008985/1.428, allocations: 5.967 MB / 0.7058 GB, free: 10.65 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001086/1.429, allocations: 121.7 kB / 0.7059 GB, free: 10.53 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004798/1.433, allocations: 6.119 MB / 0.7119 GB, free: 4.379 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003267/1.437, allocations: 2.019 MB / 0.7139 GB, free: 2.375 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005601/1.437, allocations: 164 kB / 0.714 GB, free: 2.215 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0005042/1.438, allocations: 0.6334 MB / 0.7146 GB, free: 1.574 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2156/1.653, allocations: 4.248 MB / 0.7188 GB, free: 151.6 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009515/1.663, allocations: 7.14 MB / 0.7258 GB, free: 147.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009625/1.673, allocations: 5.696 MB / 0.7313 GB, free: 145.3 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001464/1.673, allocations: 31.22 kB / 0.7314 GB, free: 145.3 MB / 478.1 MB Notification: Performance of matching and sorting (n=1057) (initialization): time 0.0226/1.696, allocations: 14.29 MB / 0.7453 GB, free: 139.8 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.434e-05/1.696, allocations: 42.03 kB / 0.7454 GB, free: 139.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001704/1.696, allocations: 97.52 kB / 0.7454 GB, free: 139.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00682/1.703, allocations: 2.775 MB / 0.7482 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005872/1.709, allocations: 1.691 MB / 0.7498 GB, free: 138.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03177/1.74, allocations: 30.3 MB / 0.7794 GB, free: 117.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006912/1.747, allocations: 445.6 kB / 0.7798 GB, free: 117.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001234/1.749, allocations: 391.3 kB / 0.7802 GB, free: 117.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 427 * 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 (887): * Single equations (assignments): 880 * 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.009245/1.758, allocations: 5.422 MB / 0.7855 GB, free: 112.5 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001487/1.759, allocations: 0.6404 MB / 0.7861 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01707/1.776, allocations: 11.68 MB / 0.7975 GB, free: 102.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.691e-05/1.776, allocations: 64 kB / 0.7976 GB, free: 102.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.88e-05/1.776, allocations: 32 kB / 0.7976 GB, free: 102.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.722e-05/1.777, allocations: 29.58 kB / 0.7976 GB, free: 102.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03508/1.812, allocations: 24.54 MB / 0.8216 GB, free: 77.85 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.029e-05/1.812, allocations: 4 kB / 0.8216 GB, free: 77.85 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003534/1.815, allocations: 0.8855 MB / 0.8225 GB, free: 76.96 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00641/1.822, allocations: 2.804 MB / 0.8252 GB, free: 74.14 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008279/1.823, allocations: 139.9 kB / 0.8254 GB, free: 74 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03246/1.855, allocations: 32.86 MB / 0.8574 GB, free: 40.39 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.515e-06/1.855, allocations: 11.94 kB / 0.8575 GB, free: 40.38 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02433/1.879, allocations: 17.94 MB / 0.875 GB, free: 21.87 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004477/1.884, allocations: 1.586 MB / 0.8765 GB, free: 20.26 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001848/1.886, allocations: 120 kB / 0.8766 GB, free: 20.14 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003612/1.889, allocations: 331.7 kB / 0.877 GB, free: 19.82 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001054/1.89, allocations: 0.4933 MB / 0.8774 GB, free: 19.33 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003633/1.891, allocations: 172 kB / 0.8776 GB, free: 19.16 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005642/1.896, allocations: 4.014 MB / 0.8815 GB, free: 15.14 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.896, allocations: 0 / 0.8815 GB, free: 15.14 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009779/1.906, allocations: 2.592 MB / 0.884 GB, free: 12.55 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 (454): * Single equations (assignments): 446 * 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,33.0%) 96,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2548/2.161, allocations: 19.9 MB / 0.9035 GB, free: 134.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01939/2.18, allocations: 12.01 MB / 0.9152 GB, free: 129.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.273e-05/2.181, allocations: 0.8125 kB / 0.9152 GB, free: 129.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01185/2.192, allocations: 7.054 MB / 0.9221 GB, free: 126.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008072/2.201, allocations: 1.577 MB / 0.9236 GB, free: 125.9 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1862/2.387, allocations: 145.4 MB / 1.066 GB, free: 7.008 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2266/2.613, allocations: 9.36 MB / 1.075 GB, free: 154.3 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008895/2.622, allocations: 2.641 MB / 1.077 GB, free: 154.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008583/2.631, allocations: 5.188 MB / 1.082 GB, free: 154.2 MB / 494.1 MB Notification: Performance of SimCode: time 2.185e-06/2.631, allocations: 0 / 1.082 GB, free: 154.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4937/3.125, allocations: 201.4 MB / 1.279 GB, free: 119.2 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001456/3.125, allocations: 248.9 kB / 1.279 GB, free: 118.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.447/9.572, allocations: 0 / 1.279 GB, free: 118.9 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