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_withLosses.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_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",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.001204/0.001204, allocations: 181.4 kB / 17.01 MB, free: 5.121 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.411/1.411, allocations: 205.4 MB / 223.1 MB, free: 9.125 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.0008911/0.0008911, allocations: 96.97 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002407/0.0002407, allocations: 7.984 kB / 328.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2463/0.2466, allocations: 47.56 MB / 375.9 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3228/0.5694, allocations: 132.1 MB / 0.4961 GB, free: 109.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003368/0.5698, allocations: 106.5 kB / 0.4962 GB, free: 109.4 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.101/1.67, allocations: 352.3 MB / 0.8402 GB, free: 50.36 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.034e-06/1.671, allocations: 0 / 0.8402 GB, free: 50.36 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005278/1.671, allocations: 218.4 kB / 0.8404 GB, free: 50.34 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.03437/1.705, allocations: 10.08 MB / 0.8503 GB, free: 47.17 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/1.706, allocations: 9.469 kB / 0.8503 GB, free: 47.17 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006559/1.712, allocations: 1.645 MB / 0.8519 GB, free: 47.04 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02644/1.739, allocations: 4.958 MB / 0.8567 GB, free: 46.47 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02559/1.764, allocations: 8.216 MB / 0.8648 GB, free: 45.47 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001074/1.765, allocations: 0.712 MB / 0.8655 GB, free: 45.45 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006184/1.772, allocations: 0.9238 MB / 0.8664 GB, free: 45.45 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04688/1.818, allocations: 17.16 MB / 0.8831 GB, free: 44.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005439/1.819, allocations: 22.25 kB / 0.8831 GB, free: 44.31 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004203/1.823, allocations: 408.2 kB / 0.8835 GB, free: 44.31 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009425/1.824, allocations: 0.7048 MB / 0.8842 GB, free: 44.29 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03548/1.86, allocations: 15.83 MB / 0.8997 GB, free: 41.67 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1142/1.974, allocations: 55.37 MB / 0.9537 GB, free: 5.246 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02781/2.002, allocations: 19.4 MB / 0.9727 GB, free: 3.008 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3341/2.336, allocations: 24.87 MB / 0.997 GB, free: 63.33 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001093/2.336, allocations: 94.34 kB / 0.9971 GB, free: 63.28 MB / 458.7 MB Notification: Performance of pre-optimization done (n=749): time 1.553e-05/2.336, allocations: 2.156 kB / 0.9971 GB, free: 63.28 MB / 458.7 MB Notification: Performance of matching and sorting (n=754): time 0.1072/2.443, allocations: 46.2 MB / 1.042 GB, free: 54.74 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.284e-05/2.443, allocations: 115.6 kB / 1.042 GB, free: 54.67 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006306/2.45, allocations: 3.217 MB / 1.045 GB, free: 54.41 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001485/2.451, allocations: 123.5 kB / 1.046 GB, free: 54.38 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002314/2.454, allocations: 3.619 MB / 1.049 GB, free: 52.16 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003534/2.457, allocations: 2.473 MB / 1.052 GB, free: 50.23 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001502/2.459, allocations: 128.7 kB / 1.052 GB, free: 50.14 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007665/2.459, allocations: 0.6025 MB / 1.052 GB, free: 49.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00817/2.468, allocations: 5.092 MB / 1.057 GB, free: 47.57 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008682/2.476, allocations: 6.344 MB / 1.063 GB, free: 44.11 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01028/2.487, allocations: 6.122 MB / 1.069 GB, free: 41.29 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.807e-05/2.487, allocations: 7.625 kB / 1.069 GB, free: 41.29 MB / 458.7 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.02762/2.514, allocations: 14.63 MB / 1.084 GB, free: 35.12 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.638e-05/2.514, allocations: 17.56 kB / 1.084 GB, free: 35.12 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.956e-05/2.515, allocations: 31.19 kB / 1.084 GB, free: 35.12 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007745/2.522, allocations: 4.045 MB / 1.088 GB, free: 33.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005383/2.528, allocations: 1.186 MB / 1.089 GB, free: 33.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01298/2.541, allocations: 12.59 MB / 1.101 GB, free: 22.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007235/2.548, allocations: 365.2 kB / 1.101 GB, free: 22.13 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002648/2.551, allocations: 278.2 kB / 1.102 GB, free: 21.88 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 141 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (636): * Single equations (assignments): 560 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 69 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of prepare postOptimizeDAE: time 0.01248/2.563, allocations: 3.876 MB / 1.106 GB, free: 18.64 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003424/2.567, allocations: 493.4 kB / 1.106 GB, free: 18.15 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03057/2.597, allocations: 14.33 MB / 1.12 GB, free: 5.848 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03806/2.635, allocations: 14.08 MB / 1.134 GB, free: 13.83 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.881e-05/2.635, allocations: 0 / 1.134 GB, free: 13.83 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001329/2.636, allocations: 36.02 kB / 1.134 GB, free: 13.82 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3321/2.968, allocations: 29.19 MB / 1.162 GB, free: 76.08 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.971e-05/2.968, allocations: 6.25 kB / 1.162 GB, free: 76.08 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004032/2.972, allocations: 0.8813 MB / 1.163 GB, free: 76.08 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006921/2.979, allocations: 3.959 MB / 1.167 GB, free: 76 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001388/2.98, allocations: 161.7 kB / 1.167 GB, free: 76 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01228/2.992, allocations: 12.48 MB / 1.179 GB, free: 71.56 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/2.993, allocations: 1.969 kB / 1.179 GB, free: 71.56 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03613/3.029, allocations: 21.67 MB / 1.201 GB, free: 70.85 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00524/3.034, allocations: 1.726 MB / 1.202 GB, free: 70.75 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002415/3.036, allocations: 110.7 kB / 1.202 GB, free: 70.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00481/3.041, allocations: 303.6 kB / 1.203 GB, free: 70.75 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00195/3.043, allocations: 0.5441 MB / 1.203 GB, free: 70.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001273/3.044, allocations: 206.2 kB / 1.203 GB, free: 70.75 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004659/3.049, allocations: 2.448 MB / 1.206 GB, free: 70.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.9e-07/3.049, allocations: 3.25 kB / 1.206 GB, free: 70.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009055/3.058, allocations: 1.832 MB / 1.208 GB, free: 70.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (480): * Single equations (assignments): 404 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 69 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.03553/3.094, allocations: 23.25 MB / 1.23 GB, free: 63.73 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02173/3.116, allocations: 12.44 MB / 1.242 GB, free: 58.78 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/3.116, allocations: 0 / 1.242 GB, free: 58.78 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01102/3.127, allocations: 6.48 MB / 1.249 GB, free: 56.16 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005663/3.132, allocations: 0.9036 MB / 1.25 GB, free: 55.88 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.368/3.5, allocations: 86.54 MB / 1.334 GB, free: 85.56 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008469/3.509, allocations: 6.843 MB / 1.341 GB, free: 84.63 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005428/3.514, allocations: 1.667 MB / 1.342 GB, free: 84.58 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005619/3.52, allocations: 3.569 MB / 1.346 GB, free: 84.58 MB / 490.7 MB Notification: Performance of SimCode: time 1.954e-06/3.52, allocations: 2.25 kB / 1.346 GB, free: 84.58 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4741/3.994, allocations: 189.7 MB / 1.531 GB, free: 73.05 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000187/3.994, allocations: 307.7 kB / 1.531 GB, free: 72.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.725/9.719, allocations: 3.281 kB / 1.531 GB, free: 72.7 MB / 490.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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_withLosses_res.mat does not exist to compare? outputFormat=mat