Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 176.6 kB / 8.35 MB, free: 0.7188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 221.5 MB / 230.3 MB, free: 7.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009743/0.0009743, allocations: 105.4 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.022e-05/2.035e-05, allocations: 4 kB / 337.2 MB, free: 9.902 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1061, allocations: 50.41 MB / 387.6 MB, free: 7.453 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4427/0.5488, allocations: 132.6 MB / 0.508 GB, free: 9.957 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003927/0.5493, allocations: 103.9 kB / 0.5081 GB, free: 9.855 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.281/1.83, allocations: 348.1 MB / 0.8481 GB, free: 8.082 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.943e-06/1.831, allocations: 0 / 0.8481 GB, free: 8.082 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006876/1.831, allocations: 219.8 kB / 0.8483 GB, free: 7.867 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: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.03535/1.867, allocations: 9.451 MB / 0.8575 GB, free: 14.35 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.979e-05/1.867, allocations: 11.98 kB / 0.8575 GB, free: 14.34 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0256/1.892, allocations: 4.272 MB / 0.8617 GB, free: 10.05 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02204/1.914, allocations: 8.397 MB / 0.8699 GB, free: 1.66 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006283/1.915, allocations: 304 kB / 0.8702 GB, free: 1.363 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00488/1.92, allocations: 0.539 MB / 0.8707 GB, free: 0.8242 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.6512/2.571, allocations: 12.52 MB / 0.883 GB, free: 34.24 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04643/2.618, allocations: 14.28 MB / 0.8969 GB, free: 33.2 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005208/2.618, allocations: 13.48 kB / 0.8969 GB, free: 33.2 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003438/2.622, allocations: 9.125 kB / 0.8969 GB, free: 33.2 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009242/2.623, allocations: 0.7449 MB / 0.8977 GB, free: 33.17 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09901/2.722, allocations: 51.47 MB / 0.9479 GB, free: 20.08 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02028/2.742, allocations: 20.32 MB / 0.9678 GB, free: 19.52 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006414/2.748, allocations: 3.502 MB / 0.9712 GB, free: 18.09 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001027/2.749, allocations: 177.3 kB / 0.9714 GB, free: 17.99 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001463/2.75, allocations: 79.86 kB / 0.9714 GB, free: 17.92 MB / 458.8 MB Notification: Performance of pre-optimization done (n=453): time 1.635e-05/2.75, allocations: 2.844 kB / 0.9714 GB, free: 17.92 MB / 458.8 MB Notification: Performance of matching and sorting (n=458): time 0.03907/2.789, allocations: 16.47 MB / 0.9875 GB, free: 11.4 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.31e-05/2.789, allocations: 101.2 kB / 0.9876 GB, free: 11.34 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006216/2.795, allocations: 3.576 MB / 0.9911 GB, free: 9.977 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001141/2.796, allocations: 27.42 kB / 0.9911 GB, free: 9.945 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00351/2.8, allocations: 4.183 MB / 0.9952 GB, free: 6.781 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002559/2.802, allocations: 1.496 MB / 0.9967 GB, free: 5.605 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004539/2.803, allocations: 0 / 0.9967 GB, free: 5.605 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0004942/2.803, allocations: 0.5646 MB / 0.9972 GB, free: 5.184 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004794/2.808, allocations: 3.053 MB / 1 GB, free: 3.918 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006282/2.814, allocations: 5.137 MB / 1.005 GB, free: 16 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009666/2.824, allocations: 5.155 MB / 1.01 GB, free: 14.11 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001287/2.824, allocations: 19.62 kB / 1.01 GB, free: 14.11 MB / 474.8 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.02614/2.85, allocations: 10.26 MB / 1.02 GB, free: 6.684 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 8.408e-05/2.851, allocations: 39.95 kB / 1.02 GB, free: 6.645 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001422/2.851, allocations: 68.19 kB / 1.02 GB, free: 6.578 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003762/2.854, allocations: 1.378 MB / 1.022 GB, free: 5.504 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006243/2.861, allocations: 1.419 MB / 1.023 GB, free: 4.398 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01737/2.878, allocations: 11.25 MB / 1.034 GB, free: 10.36 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006215/2.884, allocations: 279.7 kB / 1.034 GB, free: 10.18 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001965/2.886, allocations: 301.2 kB / 1.035 GB, free: 9.895 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 311 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (723): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.4%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001517/2.888, allocations: 292.8 kB / 1.035 GB, free: 9.695 MB / 490.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01571/2.904, allocations: 7.473 MB / 1.042 GB, free: 3.512 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001886/2.906, allocations: 446.2 kB / 1.043 GB, free: 3.074 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3556/3.261, allocations: 9.687 MB / 1.052 GB, free: 73.81 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01544/3.277, allocations: 7.027 MB / 1.059 GB, free: 73.63 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.575e-05/3.277, allocations: 18.11 kB / 1.059 GB, free: 73.63 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.341e-05/3.277, allocations: 23.02 kB / 1.059 GB, free: 73.63 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04016/3.317, allocations: 17.28 MB / 1.076 GB, free: 72.37 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.727e-05/3.317, allocations: 8.281 kB / 1.076 GB, free: 72.37 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003642/3.321, allocations: 0.8418 MB / 1.077 GB, free: 72.37 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00331/3.324, allocations: 1.248 MB / 1.078 GB, free: 72.35 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008599/3.325, allocations: 37.62 kB / 1.078 GB, free: 72.35 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01286/3.338, allocations: 10.22 MB / 1.088 GB, free: 69.79 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.014e-05/3.338, allocations: 17.05 kB / 1.088 GB, free: 69.79 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02134/3.359, allocations: 12.92 MB / 1.101 GB, free: 68.3 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003822/3.363, allocations: 1.163 MB / 1.102 GB, free: 68.2 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008603/3.364, allocations: 13.44 kB / 1.102 GB, free: 68.2 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002608/3.367, allocations: 215.8 kB / 1.102 GB, free: 68.2 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006806/3.367, allocations: 325.4 kB / 1.102 GB, free: 68.2 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002914/3.368, allocations: 134.9 kB / 1.102 GB, free: 68.2 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.004356/3.372, allocations: 2.676 MB / 1.105 GB, free: 68.05 MB / 490.8 MB Notification: Performance of sort global known variables: time 6.61e-07/3.372, allocations: 0 / 1.105 GB, free: 68.05 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.007786/3.38, allocations: 1.574 MB / 1.107 GB, free: 68.05 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * 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 (418): * Single equations (assignments): 412 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,41.8%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0225/3.402, allocations: 15.64 MB / 1.122 GB, free: 64.36 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.01539/3.418, allocations: 7.838 MB / 1.129 GB, free: 63.96 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.527e-05/3.418, allocations: 3.75 kB / 1.129 GB, free: 63.96 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009806/3.428, allocations: 3.965 MB / 1.133 GB, free: 62.8 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007059/3.435, allocations: 0.7591 MB / 1.134 GB, free: 62.62 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05723/3.492, allocations: 18.56 MB / 1.152 GB, free: 55.57 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01525/3.507, allocations: 6.668 MB / 1.159 GB, free: 53.1 MB / 490.8 MB Notification: Performance of simCode: alias equations: time 0.009609/3.517, allocations: 2.147 MB / 1.161 GB, free: 52.34 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009418/3.526, allocations: 3.558 MB / 1.164 GB, free: 49.04 MB / 490.8 MB Notification: Performance of SimCode: time 1.844e-06/3.526, allocations: 0 / 1.164 GB, free: 49.04 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5628/4.089, allocations: 131.4 MB / 1.293 GB, free: 63.95 MB / 490.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002088/4.09, allocations: 232.9 kB / 1.293 GB, free: 63.67 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.146/10.24, allocations: 0 / 1.293 GB, free: 63.67 MB / 490.8 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat does not exist to compare? outputFormat=mat