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_Transformer.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_Transformer,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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/Complex 3.2.3+maint.om/package.mo): time 0.0009961/0.0009961, allocations: 171.9 kB / 14.1 MB, free: 1.223 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.386/1.386, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.000838/0.0008381, allocations: 74.72 kB / 268 MB, free: 14.03 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.523e-05/3.561e-05, allocations: 4 kB / 323.6 MB, free: 16.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1022, allocations: 47.57 MB / 371.1 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4044/0.5067, allocations: 167.2 MB / 0.5257 GB, free: 6.668 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003011/0.507, allocations: 99.94 kB / 0.5258 GB, free: 6.57 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.659/4.166, allocations: 0.858 GB / 1.384 GB, free: 12.8 MB / 490.8 MB Notification: Performance of FrontEnd: time 2.745e-06/4.166, allocations: 0.7812 kB / 1.384 GB, free: 12.8 MB / 490.8 MB Notification: Performance of Transformations before backend: time 0.001931/4.168, allocations: 479.2 kB / 1.384 GB, free: 12.8 MB / 490.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5875 * Number of variables: 5875 Notification: Performance of Generate backend data structure: time 0.07875/4.247, allocations: 19.58 MB / 1.403 GB, free: 9.965 MB / 490.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.429e-05/4.247, allocations: 9.906 kB / 1.403 GB, free: 9.965 MB / 490.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01716/4.264, allocations: 2.976 MB / 1.406 GB, free: 9.777 MB / 490.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05643/4.32, allocations: 10.32 MB / 1.416 GB, free: 8.648 MB / 490.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04567/4.366, allocations: 15.83 MB / 1.432 GB, free: 6.887 MB / 490.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002703/4.369, allocations: 1.545 MB / 1.433 GB, free: 6.844 MB / 490.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01301/4.382, allocations: 2.022 MB / 1.435 GB, free: 6.828 MB / 490.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1004/4.482, allocations: 35.52 MB / 1.47 GB, free: 20.44 MB / 0.4949 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001123/4.484, allocations: 26.78 kB / 1.47 GB, free: 20.43 MB / 0.4949 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008996/4.493, allocations: 0.8621 MB / 1.471 GB, free: 20.43 MB / 0.4949 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001923/4.495, allocations: 1.389 MB / 1.472 GB, free: 20.39 MB / 0.4949 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07159/4.566, allocations: 32.12 MB / 1.504 GB, free: 14.41 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7043/5.271, allocations: 114.4 MB / 1.615 GB, free: 33.82 MB / 0.5262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04385/5.314, allocations: 43.99 MB / 1.658 GB, free: 30.04 MB / 0.5418 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02473/5.339, allocations: 16.32 MB / 1.674 GB, free: 29.88 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09297/5.432, allocations: 50.37 MB / 1.723 GB, free: 24.55 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001717/5.432, allocations: 179.5 kB / 1.724 GB, free: 24.41 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=1576): time 2.065e-05/5.432, allocations: 0 / 1.724 GB, free: 24.41 MB / 0.5418 GB Notification: Performance of matching and sorting (n=1588): time 0.1169/5.549, allocations: 57.17 MB / 1.779 GB, free: 380 kB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001621/5.55, allocations: 219.4 kB / 1.78 GB, free: 144 kB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3944/5.944, allocations: 6.052 MB / 1.785 GB, free: 87.7 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 0.003219/5.947, allocations: 243.4 kB / 1.786 GB, free: 87.67 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.006109/5.953, allocations: 7.356 MB / 1.793 GB, free: 85.89 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 0.009613/5.963, allocations: 5.199 MB / 1.798 GB, free: 82.5 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004245/5.967, allocations: 255.6 kB / 1.798 GB, free: 82.5 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.002273/5.97, allocations: 0.9078 MB / 1.799 GB, free: 82.16 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02021/5.99, allocations: 10.16 MB / 1.809 GB, free: 82.13 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02121/6.011, allocations: 12.36 MB / 1.821 GB, free: 80.16 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02032/6.032, allocations: 12.11 MB / 1.833 GB, free: 79.98 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001212/6.032, allocations: 15.56 kB / 1.833 GB, free: 79.98 MB / 0.5574 GB Notification: Performance of matching and sorting (n=1865) (initialization): time 0.05889/6.091, allocations: 31.27 MB / 1.863 GB, free: 78.9 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001447/6.091, allocations: 32.81 kB / 1.864 GB, free: 78.9 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001606/6.091, allocations: 50.5 kB / 1.864 GB, free: 78.9 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03/6.121, allocations: 14.62 MB / 1.878 GB, free: 77.86 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008946/6.13, allocations: 2.079 MB / 1.88 GB, free: 77.8 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03636/6.166, allocations: 35.63 MB / 1.915 GB, free: 56.82 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01166/6.178, allocations: 0.6243 MB / 1.915 GB, free: 56.61 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004294/6.182, allocations: 0.5287 MB / 1.916 GB, free: 56.5 MB / 0.5574 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 230 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1058): * Single equations (assignments): 1018 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 29 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * 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: 5 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,66 432} Notification: Performance of prepare postOptimizeDAE: time 0.005548/6.188, allocations: 0.7697 MB / 1.917 GB, free: 55.97 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00304/6.191, allocations: 1.011 MB / 1.918 GB, free: 55.43 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05189/6.243, allocations: 31.91 MB / 1.949 GB, free: 33.11 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004278/6.243, allocations: 387.2 kB / 1.949 GB, free: 32.77 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.092e-05/6.243, allocations: 12 kB / 1.949 GB, free: 32.76 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002966/6.244, allocations: 66.14 kB / 1.949 GB, free: 32.76 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5359/6.78, allocations: 60.63 MB / 2.008 GB, free: 77.7 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001158/6.78, allocations: 2.562 kB / 2.008 GB, free: 77.7 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007971/6.788, allocations: 1.625 MB / 2.01 GB, free: 77.7 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02693/6.815, allocations: 14.79 MB / 2.024 GB, free: 77.16 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002893/6.818, allocations: 345.4 kB / 2.025 GB, free: 77.16 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03966/6.857, allocations: 39.87 MB / 2.064 GB, free: 65.25 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/6.857, allocations: 4.781 kB / 2.064 GB, free: 65.25 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06928/6.927, allocations: 47.4 MB / 2.11 GB, free: 53.14 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01021/6.937, allocations: 3.473 MB / 2.113 GB, free: 51.79 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00459/6.942, allocations: 248.4 kB / 2.114 GB, free: 51.61 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009583/6.951, allocations: 0.6241 MB / 2.114 GB, free: 51.44 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004283/6.955, allocations: 1.171 MB / 2.115 GB, free: 51.19 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002835/6.958, allocations: 420.7 kB / 2.116 GB, free: 51.09 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.008853/6.967, allocations: 4.529 MB / 2.12 GB, free: 49.38 MB / 0.5574 GB Notification: Performance of sort global known variables: time 1.302e-06/6.967, allocations: 3.906 kB / 2.12 GB, free: 49.38 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01901/6.986, allocations: 3.896 MB / 2.124 GB, free: 47.75 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 12 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,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,booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (820): * Single equations (assignments): 779 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 29 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,66 432} Notification: Performance of Backend phase and start with SimCode phase: time 0.08009/7.066, allocations: 49.42 MB / 2.172 GB, free: 4.145 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.4064/7.473, allocations: 27.83 MB / 2.199 GB, free: 90.04 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/7.473, allocations: 2.625 kB / 2.199 GB, free: 90.04 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.02723/7.5, allocations: 14.95 MB / 2.214 GB, free: 88.83 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01456/7.515, allocations: 2.326 MB / 2.216 GB, free: 88.79 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1069/7.622, allocations: 47.35 MB / 2.262 GB, free: 82.35 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02526/7.647, allocations: 13.89 MB / 2.276 GB, free: 80.95 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.01283/7.66, allocations: 3.089 MB / 2.279 GB, free: 80.62 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01527/7.675, allocations: 7.92 MB / 2.287 GB, free: 80.61 MB / 0.5574 GB Notification: Performance of SimCode: time 1.272e-06/7.675, allocations: 0 / 2.287 GB, free: 80.61 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.323/8.998, allocations: 414.6 MB / 2.692 GB, free: 120 MB / 0.6043 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001935/8.998, allocations: 241 kB / 2.692 GB, free: 119.7 MB / 0.6043 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.07/21.07, allocations: 0 / 2.692 GB, free: 119.7 MB / 0.6043 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat