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_Initialize.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_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",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.001298/0.001298, allocations: 181.4 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.44/1.44, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0009233/0.0009231, allocations: 96.09 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002661/0.0002662, allocations: 4 kB / 328.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.2547, allocations: 47.57 MB / 375.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3715/0.6262, allocations: 146.6 MB / 0.5103 GB, free: 109.6 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002966/0.6266, allocations: 108.2 kB / 0.5104 GB, free: 109.6 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.157/1.784, allocations: 350.8 MB / 0.853 GB, free: 37.03 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.936e-06/1.784, allocations: 0 / 0.853 GB, free: 37.03 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001234/1.785, allocations: 245.4 kB / 0.8532 GB, free: 37.01 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: 3009 * Number of variables: 3009 Notification: Performance of Generate backend data structure: time 0.04454/1.83, allocations: 10.95 MB / 0.8639 GB, free: 33.46 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/1.83, allocations: 11.81 kB / 0.8639 GB, free: 33.46 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008396/1.838, allocations: 1.543 MB / 0.8654 GB, free: 33.34 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03201/1.87, allocations: 5.405 MB / 0.8707 GB, free: 32.73 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02487/1.895, allocations: 9.415 MB / 0.8799 GB, free: 31.61 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001082/1.896, allocations: 0.792 MB / 0.8807 GB, free: 31.58 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005278/1.901, allocations: 1.04 MB / 0.8817 GB, free: 31.57 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04785/1.949, allocations: 17.94 MB / 0.8992 GB, free: 30.35 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005959/1.95, allocations: 18.47 kB / 0.8992 GB, free: 30.34 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004153/1.954, allocations: 461.4 kB / 0.8997 GB, free: 30.34 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008135/1.955, allocations: 0.7346 MB / 0.9004 GB, free: 30.31 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03321/1.988, allocations: 16.74 MB / 0.9167 GB, free: 25.04 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1105/2.099, allocations: 58.63 MB / 0.974 GB, free: 0 / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2729/2.372, allocations: 23.47 MB / 0.9969 GB, free: 36.59 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03366/2.405, allocations: 21.61 MB / 1.018 GB, free: 35.54 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.988e-05/2.405, allocations: 104.3 kB / 1.018 GB, free: 35.49 MB / 458.7 MB Notification: Performance of pre-optimization done (n=672): time 8.015e-06/2.405, allocations: 0 / 1.018 GB, free: 35.49 MB / 458.7 MB Notification: Performance of matching and sorting (n=697): time 0.07174/2.477, allocations: 39.12 MB / 1.056 GB, free: 25.78 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.298e-05/2.477, allocations: 144.3 kB / 1.056 GB, free: 25.68 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005552/2.483, allocations: 3.611 MB / 1.06 GB, free: 24.34 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001376/2.484, allocations: 130.8 kB / 1.06 GB, free: 24.23 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002239/2.486, allocations: 4.212 MB / 1.064 GB, free: 21.07 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002803/2.489, allocations: 2.311 MB / 1.066 GB, free: 19.27 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005074/2.49, allocations: 134.4 kB / 1.067 GB, free: 19.17 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003905/2.49, allocations: 0.6004 MB / 1.067 GB, free: 18.74 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006/2.496, allocations: 4.567 MB / 1.072 GB, free: 16.82 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007093/2.503, allocations: 6.122 MB / 1.078 GB, free: 13.13 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008056/2.511, allocations: 5.578 MB / 1.083 GB, free: 10.57 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.139e-05/2.512, allocations: 17.84 kB / 1.083 GB, free: 10.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.02867/2.54, allocations: 14.02 MB / 1.097 GB, free: 4.801 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.606e-05/2.54, allocations: 26.88 kB / 1.097 GB, free: 4.801 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001165/2.54, allocations: 43.66 kB / 1.097 GB, free: 4.801 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008022/2.548, allocations: 4.035 MB / 1.101 GB, free: 3.629 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005759/2.554, allocations: 1.318 MB / 1.102 GB, free: 3.586 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01873/2.573, allocations: 16.97 MB / 1.119 GB, free: 8.227 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006194/2.579, allocations: 353.4 kB / 1.119 GB, free: 8.113 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001769/2.581, allocations: 300.4 kB / 1.119 GB, free: 7.844 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 197 * 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 (675): * Single equations (assignments): 636 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * 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: 3 {(1,100.0%) 1,(7,59.2%) 28,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of prepare postOptimizeDAE: time 0.01028/2.591, allocations: 3.922 MB / 1.123 GB, free: 4.52 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001834/2.593, allocations: 0.5317 MB / 1.124 GB, free: 3.984 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02802/2.621, allocations: 13.76 MB / 1.137 GB, free: 9.379 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000167/2.621, allocations: 149.7 kB / 1.137 GB, free: 9.246 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.101e-05/2.621, allocations: 8 kB / 1.137 GB, free: 9.238 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001124/2.622, allocations: 33.98 kB / 1.137 GB, free: 9.238 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3185/2.94, allocations: 27.09 MB / 1.164 GB, free: 75.62 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-05/2.94, allocations: 3.812 kB / 1.164 GB, free: 75.62 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003873/2.944, allocations: 0.8836 MB / 1.165 GB, free: 75.62 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007858/2.952, allocations: 3.918 MB / 1.168 GB, free: 75.52 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001317/2.953, allocations: 153.6 kB / 1.169 GB, free: 75.52 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01989/2.973, allocations: 20.88 MB / 1.189 GB, free: 65.14 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.756e-06/2.973, allocations: 8.469 kB / 1.189 GB, free: 65.14 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02949/3.003, allocations: 20.24 MB / 1.209 GB, free: 63.69 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005311/3.008, allocations: 1.658 MB / 1.21 GB, free: 63.59 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002201/3.01, allocations: 110.9 kB / 1.21 GB, free: 63.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004556/3.015, allocations: 305 kB / 1.211 GB, free: 63.59 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001631/3.017, allocations: 0.5139 MB / 1.211 GB, free: 63.59 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009656/3.018, allocations: 192 kB / 1.211 GB, free: 63.59 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004719/3.022, allocations: 2.729 MB / 1.214 GB, free: 63.41 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.062e-06/3.022, allocations: 0 / 1.214 GB, free: 63.41 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008749/3.031, allocations: 1.992 MB / 1.216 GB, free: 63.41 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imcQS.inertiaRotor.phi,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.strayReluctance.Phi.re,imc.stator.strayReluctance.Phi.im,imc.stator.zeroInductor.i0,loadInertia.w) * 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 (455): * Single equations (assignments): 413 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of Backend phase and start with SimCode phase: time 0.02555/3.057, allocations: 22.01 MB / 1.238 GB, free: 54.59 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01807/3.075, allocations: 11.84 MB / 1.249 GB, free: 49.79 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.134e-05/3.075, allocations: 0 / 1.249 GB, free: 49.79 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01173/3.087, allocations: 6.705 MB / 1.256 GB, free: 46.7 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007366/3.094, allocations: 1.172 MB / 1.257 GB, free: 46.39 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3823/3.476, allocations: 98.19 MB / 1.353 GB, free: 87.52 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009254/3.486, allocations: 7.114 MB / 1.36 GB, free: 86.6 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.005744/3.491, allocations: 1.669 MB / 1.361 GB, free: 86.55 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005498/3.497, allocations: 4.016 MB / 1.365 GB, free: 86.55 MB / 0.4948 GB Notification: Performance of SimCode: time 1.113e-06/3.497, allocations: 0 / 1.365 GB, free: 86.55 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4558/3.953, allocations: 194 MB / 1.555 GB, free: 86.55 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001732/3.953, allocations: 268 kB / 1.555 GB, free: 86.2 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.788/10.74, allocations: 0 / 1.555 GB, free: 86.2 MB / 0.4948 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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_Initialize_res.mat does not exist to compare? outputFormat=mat