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.001117/0.001117, allocations: 172.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.432/1.432, 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.0008466/0.0008464, allocations: 78.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.408e-05/2.41e-05, allocations: 4 kB / 322.6 MB, free: 17.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08808/0.08811, allocations: 47.57 MB / 370.1 MB, free: 1.594 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3763/0.4645, allocations: 132 MB / 0.4904 GB, free: 9.887 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002731/0.4648, allocations: 100 kB / 0.4905 GB, free: 9.832 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.071/1.536, allocations: 351.9 MB / 0.8341 GB, free: 7.992 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.383e-06/1.536, allocations: 0 / 0.8341 GB, free: 7.992 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006569/1.537, allocations: 227.7 kB / 0.8343 GB, free: 7.77 MB / 426.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.5372/2.074, allocations: 9.537 MB / 0.8436 GB, free: 26.22 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/2.074, allocations: 9.578 kB / 0.8437 GB, free: 26.22 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006782/2.081, allocations: 1.628 MB / 0.8452 GB, free: 26.1 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02829/2.109, allocations: 4.937 MB / 0.8501 GB, free: 25.59 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01977/2.129, allocations: 8.167 MB / 0.858 GB, free: 25.13 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001002/2.13, allocations: 0.7164 MB / 0.8587 GB, free: 25.11 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004806/2.135, allocations: 0.9254 MB / 0.8596 GB, free: 25.1 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04583/2.181, allocations: 16.96 MB / 0.8762 GB, free: 24.01 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004044/2.181, allocations: 12.81 kB / 0.8762 GB, free: 24.01 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004309/2.185, allocations: 407.9 kB / 0.8766 GB, free: 24.01 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0011/2.186, allocations: 0.7076 MB / 0.8773 GB, free: 23.98 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0347/2.221, allocations: 15.55 MB / 0.8925 GB, free: 23.89 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09426/2.316, allocations: 55.38 MB / 0.9466 GB, free: 1.75 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02287/2.338, allocations: 19.35 MB / 0.9655 GB, free: 5.875 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01428/2.353, allocations: 7.531 MB / 0.9728 GB, free: 0.7773 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06486/2.418, allocations: 25.71 MB / 0.9979 GB, free: 13.96 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000118/2.418, allocations: 102.6 kB / 0.998 GB, free: 13.86 MB / 474.8 MB Notification: Performance of pre-optimization done (n=749): time 1.3e-05/2.418, allocations: 6.188 kB / 0.998 GB, free: 13.85 MB / 474.8 MB Notification: Performance of matching and sorting (n=754): time 0.3418/2.76, allocations: 25.4 MB / 1.023 GB, free: 70.25 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.83e-05/2.76, allocations: 117.9 kB / 1.023 GB, free: 70.18 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004974/2.765, allocations: 3.178 MB / 1.026 GB, free: 69.92 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001311/2.766, allocations: 123.5 kB / 1.026 GB, free: 69.89 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002418/2.768, allocations: 3.617 MB / 1.03 GB, free: 68.27 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003419/2.772, allocations: 2.486 MB / 1.032 GB, free: 66.65 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005138/2.772, allocations: 127.4 kB / 1.032 GB, free: 66.65 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0005239/2.773, allocations: 0.6041 MB / 1.033 GB, free: 66.33 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008573/2.782, allocations: 5.011 MB / 1.038 GB, free: 66.32 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008715/2.79, allocations: 6.259 MB / 1.044 GB, free: 65.12 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009635/2.8, allocations: 6.061 MB / 1.05 GB, free: 65.02 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.478e-05/2.8, allocations: 12.41 kB / 1.05 GB, free: 65.02 MB / 474.8 MB Notification: Performance of matching and sorting (n=941) (initialization): time 0.02964/2.83, allocations: 14.44 MB / 1.064 GB, free: 64.48 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 9.067e-05/2.83, allocations: 20.66 kB / 1.064 GB, free: 64.48 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.61e-05/2.83, allocations: 34.48 kB / 1.064 GB, free: 64.48 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007369/2.837, allocations: 4.005 MB / 1.068 GB, free: 64.4 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005656/2.843, allocations: 1.186 MB / 1.069 GB, free: 64.4 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01409/2.857, allocations: 12.54 MB / 1.081 GB, free: 59.84 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005926/2.863, allocations: 362.6 kB / 1.082 GB, free: 59.84 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002201/2.865, allocations: 281.5 kB / 1.082 GB, free: 59.84 MB / 474.8 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 () * 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.003703/2.869, allocations: 444.4 kB / 1.082 GB, free: 59.71 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002622/2.872, allocations: 0.4884 MB / 1.083 GB, free: 59.45 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02807/2.9, allocations: 14.17 MB / 1.097 GB, free: 55.81 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02096/2.921, allocations: 12.67 MB / 1.109 GB, free: 50.44 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.568e-05/2.921, allocations: 0 / 1.109 GB, free: 50.44 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.331e-05/2.921, allocations: 38.41 kB / 1.109 GB, free: 50.44 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05637/2.977, allocations: 28.05 MB / 1.136 GB, free: 38.12 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.928e-05/2.977, allocations: 0 / 1.136 GB, free: 38.12 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004312/2.982, allocations: 0.8844 MB / 1.137 GB, free: 38.01 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007259/2.989, allocations: 3.919 MB / 1.141 GB, free: 34.82 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001697/2.991, allocations: 164.1 kB / 1.141 GB, free: 34.68 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01115/3.002, allocations: 12.43 MB / 1.153 GB, free: 23.05 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/3.002, allocations: 4.156 kB / 1.153 GB, free: 23.05 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03002/3.032, allocations: 21.43 MB / 1.174 GB, free: 3.887 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005377/3.037, allocations: 1.734 MB / 1.176 GB, free: 2.316 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002428/3.04, allocations: 107.3 kB / 1.176 GB, free: 2.215 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004488/3.044, allocations: 297.6 kB / 1.176 GB, free: 2.008 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001666/3.046, allocations: 0.5544 MB / 1.177 GB, free: 1.648 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001128/3.047, allocations: 205.5 kB / 1.177 GB, free: 1.469 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.006115/3.053, allocations: 2.498 MB / 1.18 GB, free: 15.52 MB / 490.8 MB Notification: Performance of sort global known variables: time 6.11e-07/3.053, allocations: 0 / 1.18 GB, free: 15.52 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01092/3.064, allocations: 1.823 MB / 1.181 GB, free: 13.71 MB / 490.8 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 () * 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.3404/3.405, allocations: 23.06 MB / 1.204 GB, free: 83.5 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.0231/3.428, allocations: 12.27 MB / 1.216 GB, free: 83.09 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.057e-05/3.428, allocations: 6.625 kB / 1.216 GB, free: 83.09 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01242/3.44, allocations: 6.41 MB / 1.222 GB, free: 82.81 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006504/3.447, allocations: 0.9033 MB / 1.223 GB, free: 82.78 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04419/3.491, allocations: 22.7 MB / 1.245 GB, free: 79.83 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00611/3.497, allocations: 6.838 MB / 1.252 GB, free: 78.89 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.005368/3.503, allocations: 1.661 MB / 1.253 GB, free: 78.73 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005781/3.508, allocations: 3.569 MB / 1.257 GB, free: 78.72 MB / 490.8 MB Notification: Performance of SimCode: time 1.182e-06/3.508, allocations: 0 / 1.257 GB, free: 78.72 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4881/3.997, allocations: 184.3 MB / 1.437 GB, free: 80.19 MB / 490.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001843/3.997, allocations: 278.2 kB / 1.437 GB, free: 79.86 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.119/10.12, allocations: 0 / 1.437 GB, free: 79.86 MB / 490.8 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