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.001064/0.001064, allocations: 179.9 kB / 17.01 MB, free: 5.125 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.462/1.462, allocations: 205.4 MB / 223.1 MB, free: 9.039 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.0008196/0.0008195, allocations: 96.14 kB / 271.5 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002477/0.0002477, allocations: 8 kB / 329.7 MB, free: 14.07 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2622, allocations: 47.57 MB / 377.3 MB, free: 46.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3634/0.6257, allocations: 167.3 MB / 0.5318 GB, free: 89.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/0.626, allocations: 103.2 kB / 0.5319 GB, free: 89.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.041/3.667, allocations: 0.8585 GB / 1.39 GB, free: 30.76 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.426e-06/3.667, allocations: 0 / 1.39 GB, free: 30.76 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.001584/3.669, allocations: 475.2 kB / 1.391 GB, free: 30.71 MB / 0.4948 GB 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.07617/3.745, allocations: 20.72 MB / 1.411 GB, free: 24.35 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/3.745, allocations: 6.969 kB / 1.411 GB, free: 24.35 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01382/3.759, allocations: 3.018 MB / 1.414 GB, free: 24.16 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.055/3.814, allocations: 10.37 MB / 1.424 GB, free: 22.97 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03642/3.851, allocations: 15.87 MB / 1.44 GB, free: 21.16 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002112/3.853, allocations: 1.547 MB / 1.441 GB, free: 21.12 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01007/3.863, allocations: 2.017 MB / 1.443 GB, free: 21.11 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1012/3.964, allocations: 35.93 MB / 1.478 GB, free: 18.68 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001049/3.965, allocations: 30.7 kB / 1.478 GB, free: 18.67 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008434/3.974, allocations: 0.8692 MB / 1.479 GB, free: 18.06 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001537/3.975, allocations: 1.387 MB / 1.48 GB, free: 17.75 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07902/4.054, allocations: 33.29 MB / 1.513 GB, free: 10.34 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5766/4.631, allocations: 112.5 MB / 1.623 GB, free: 27.21 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04361/4.675, allocations: 44.26 MB / 1.666 GB, free: 14.35 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.103/4.778, allocations: 50.01 MB / 1.715 GB, free: 9.34 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001339/4.778, allocations: 179.5 kB / 1.715 GB, free: 9.199 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=1590): time 1.824e-05/4.778, allocations: 0 / 1.715 GB, free: 9.199 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1602): time 0.4648/5.243, allocations: 73.27 MB / 1.787 GB, free: 88.3 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/5.243, allocations: 218.9 kB / 1.787 GB, free: 88.19 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0112/5.254, allocations: 5.986 MB / 1.793 GB, free: 87.77 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.003555/5.258, allocations: 245.1 kB / 1.793 GB, free: 87.74 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.004854/5.263, allocations: 7.347 MB / 1.8 GB, free: 84.17 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.006702/5.269, allocations: 5.239 MB / 1.805 GB, free: 80.75 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002189/5.271, allocations: 260.6 kB / 1.805 GB, free: 80.75 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.001209/5.273, allocations: 0.9077 MB / 1.806 GB, free: 80.41 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01571/5.288, allocations: 10.4 MB / 1.816 GB, free: 80.38 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0185/5.307, allocations: 12.6 MB / 1.829 GB, free: 78.42 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01949/5.326, allocations: 12.32 MB / 1.841 GB, free: 74.96 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001218/5.327, allocations: 13.34 kB / 1.841 GB, free: 74.96 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1877) (initialization): time 0.06493/5.392, allocations: 31.92 MB / 1.872 GB, free: 61.61 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001621/5.392, allocations: 25.56 kB / 1.872 GB, free: 61.61 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002017/5.392, allocations: 52.56 kB / 1.872 GB, free: 61.61 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02847/5.42, allocations: 14.9 MB / 1.887 GB, free: 57.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009381/5.43, allocations: 2.109 MB / 1.889 GB, free: 55.47 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04527/5.475, allocations: 36 MB / 1.924 GB, free: 22.44 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01226/5.488, allocations: 0.6353 MB / 1.924 GB, free: 21.95 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004371/5.492, allocations: 0.5272 MB / 1.925 GB, free: 21.47 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 228 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1070): * Single equations (assignments): 1030 * 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 {(3,100.0%) 25,(1,100.0%) 8,(1,100.0%) 1,(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.0207/5.513, allocations: 7.907 MB / 1.933 GB, free: 14.87 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0055/5.518, allocations: 1.01 MB / 1.934 GB, free: 13.85 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3894/5.908, allocations: 34.86 MB / 1.968 GB, free: 88.41 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004086/5.908, allocations: 388.8 kB / 1.968 GB, free: 88.41 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.061e-05/5.908, allocations: 10.5 kB / 1.968 GB, free: 88.41 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002794/5.908, allocations: 69 kB / 1.968 GB, free: 88.41 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1078/6.016, allocations: 60.91 MB / 2.028 GB, free: 85.91 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001074/6.016, allocations: 4.781 kB / 2.028 GB, free: 85.91 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007306/6.024, allocations: 1.645 MB / 2.029 GB, free: 85.86 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0252/6.049, allocations: 14.84 MB / 2.044 GB, free: 81.83 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002486/6.051, allocations: 342.4 kB / 2.044 GB, free: 81.64 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03841/6.09, allocations: 40.31 MB / 2.083 GB, free: 57.05 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/6.09, allocations: 6.562 kB / 2.083 GB, free: 57.05 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07022/6.16, allocations: 48.43 MB / 2.131 GB, free: 18.16 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01089/6.171, allocations: 3.496 MB / 2.134 GB, free: 15.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003346/6.174, allocations: 246.7 kB / 2.134 GB, free: 15.34 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007439/6.182, allocations: 0.6353 MB / 2.135 GB, free: 14.87 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002608/6.185, allocations: 1.167 MB / 2.136 GB, free: 14.13 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001209/6.186, allocations: 428.9 kB / 2.137 GB, free: 13.75 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.007115/6.193, allocations: 4.595 MB / 2.141 GB, free: 9.945 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.7e-07/6.193, allocations: 0 / 2.141 GB, free: 9.945 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.01594/6.209, allocations: 3.913 MB / 2.145 GB, free: 6.051 MB / 0.5573 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (834): * Single equations (assignments): 793 * 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,(2,100.0%) 26,(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.4332/6.642, allocations: 52.82 MB / 2.196 GB, free: 83.86 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.04083/6.683, allocations: 26.65 MB / 2.222 GB, free: 82.7 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/6.683, allocations: 2.188 kB / 2.222 GB, free: 82.7 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.02332/6.706, allocations: 15.24 MB / 2.237 GB, free: 81.48 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01085/6.717, allocations: 2.337 MB / 2.24 GB, free: 81.45 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.615/7.332, allocations: 190.1 MB / 2.425 GB, free: 95.44 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02574/7.358, allocations: 13.9 MB / 2.439 GB, free: 94.24 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.01263/7.371, allocations: 3.103 MB / 2.442 GB, free: 94 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01317/7.384, allocations: 7.91 MB / 2.45 GB, free: 94 MB / 0.573 GB Notification: Performance of SimCode: time 1.333e-06/7.384, allocations: 0 / 2.45 GB, free: 94 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.137/8.521, allocations: 426.1 MB / 2.866 GB, free: 95.44 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001944/8.521, allocations: 268.3 kB / 2.866 GB, free: 95.09 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/21.19, allocations: 2.188 kB / 2.866 GB, free: 95.09 MB / 0.5886 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