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_Characteristics.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_Characteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics",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.001453/0.001453, allocations: 177.1 kB / 8.35 MB, free: 0.7266 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.466/1.466, allocations: 221.5 MB / 230.3 MB, free: 7.535 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.0009496/0.0009495, allocations: 93.02 kB / 281.2 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.132e-05/2.135e-05, allocations: 4 kB / 337.2 MB, free: 9.902 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1151, allocations: 50.42 MB / 387.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.455/0.5701, allocations: 126.4 MB / 0.5019 GB, free: 324 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003332/0.5705, allocations: 102 kB / 0.502 GB, free: 224 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.166/1.737, allocations: 333.7 MB / 0.8279 GB, free: 27.81 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.666e-06/1.737, allocations: 0 / 0.8279 GB, free: 27.81 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001148/1.738, allocations: 203.8 kB / 0.8281 GB, free: 27.61 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: 2620 * Number of variables: 2620 Notification: Performance of Generate backend data structure: time 0.03563/1.774, allocations: 8.95 MB / 0.8369 GB, free: 18.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/1.774, allocations: 15.98 kB / 0.8369 GB, free: 18.57 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02421/1.798, allocations: 4.211 MB / 0.841 GB, free: 14.35 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0216/1.82, allocations: 8.032 MB / 0.8488 GB, free: 6.332 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006201/1.82, allocations: 296 kB / 0.8491 GB, free: 6.043 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004491/1.825, allocations: 0.5233 MB / 0.8496 GB, free: 5.52 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02855/1.853, allocations: 12.23 MB / 0.8616 GB, free: 9.277 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3884/2.242, allocations: 13.95 MB / 0.8752 GB, free: 38.19 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005301/2.242, allocations: 12.75 kB / 0.8752 GB, free: 38.19 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003125/2.245, allocations: 12.95 kB / 0.8752 GB, free: 38.19 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001133/2.247, allocations: 0.7274 MB / 0.8759 GB, free: 38.16 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1024/2.349, allocations: 50.49 MB / 0.9253 GB, free: 29.61 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02781/2.377, allocations: 27.28 MB / 0.9519 GB, free: 24.34 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006056/2.383, allocations: 3.354 MB / 0.9552 GB, free: 24.18 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006921/2.384, allocations: 165.2 kB / 0.9553 GB, free: 24.07 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001022/2.384, allocations: 72.64 kB / 0.9554 GB, free: 24.01 MB / 458.7 MB Notification: Performance of pre-optimization done (n=404): time 7.904e-06/2.384, allocations: 0 / 0.9554 GB, free: 24.01 MB / 458.7 MB Notification: Performance of matching and sorting (n=410): time 0.03259/2.416, allocations: 14.55 MB / 0.9696 GB, free: 18.18 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.66e-05/2.417, allocations: 97.23 kB / 0.9697 GB, free: 18.11 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007044/2.424, allocations: 2.881 MB / 0.9725 GB, free: 16.94 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009322/2.425, allocations: 25.7 kB / 0.9725 GB, free: 16.91 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002795/2.427, allocations: 3.991 MB / 0.9764 GB, free: 13.89 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002096/2.43, allocations: 1.342 MB / 0.9777 GB, free: 12.84 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001066/2.431, allocations: 0 / 0.9777 GB, free: 12.84 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007344/2.431, allocations: 0.5462 MB / 0.9783 GB, free: 12.43 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004763/2.436, allocations: 2.768 MB / 0.981 GB, free: 11.29 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005983/2.442, allocations: 4.873 MB / 0.9857 GB, free: 7.398 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008811/2.451, allocations: 4.768 MB / 0.9904 GB, free: 5.648 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001291/2.451, allocations: 22.19 kB / 0.9904 GB, free: 5.648 MB / 458.7 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.02292/2.474, allocations: 9.416 MB / 0.9996 GB, free: 2.598 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001611/2.474, allocations: 33.91 kB / 0.9996 GB, free: 2.598 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002039/2.475, allocations: 76.81 kB / 0.9997 GB, free: 2.594 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003498/2.478, allocations: 1.185 MB / 1.001 GB, free: 2.371 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005882/2.484, allocations: 1.358 MB / 1.002 GB, free: 2.328 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01476/2.499, allocations: 8.783 MB / 1.011 GB, free: 13.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005557/2.504, allocations: 256.4 kB / 1.011 GB, free: 13.68 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001636/2.506, allocations: 284.2 kB / 1.011 GB, free: 13.63 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 319 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (697): * Single equations (assignments): 692 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,41.3%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002506/2.509, allocations: 289.4 kB / 1.012 GB, free: 13.46 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01526/2.524, allocations: 6.516 MB / 1.018 GB, free: 11.11 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001634/2.526, allocations: 383.9 kB / 1.018 GB, free: 10.91 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01754/2.543, allocations: 7.287 MB / 1.025 GB, free: 7.441 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01475/2.558, allocations: 6.238 MB / 1.032 GB, free: 2.273 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-05/2.558, allocations: 8 kB / 1.032 GB, free: 2.266 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.276e-05/2.558, allocations: 24.16 kB / 1.032 GB, free: 2.262 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03993/2.598, allocations: 15.84 MB / 1.047 GB, free: 5.262 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-05/2.598, allocations: 7.281 kB / 1.047 GB, free: 5.258 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004182/2.602, allocations: 0.7646 MB / 1.048 GB, free: 4.629 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003608/2.606, allocations: 1.067 MB / 1.049 GB, free: 3.82 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009696/2.607, allocations: 23.7 kB / 1.049 GB, free: 3.801 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3808/2.988, allocations: 7.792 MB / 1.056 GB, free: 85.48 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.347e-05/2.988, allocations: 7.25 kB / 1.056 GB, free: 85.48 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02524/3.013, allocations: 11.08 MB / 1.067 GB, free: 84.43 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003759/3.017, allocations: 0.9889 MB / 1.068 GB, free: 84.33 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001745/3.019, allocations: 7.312 kB / 1.068 GB, free: 84.33 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003863/3.023, allocations: 179.9 kB / 1.068 GB, free: 84.33 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001372/3.024, allocations: 288.3 kB / 1.069 GB, free: 84.32 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007742/3.025, allocations: 121.8 kB / 1.069 GB, free: 84.32 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006051/3.031, allocations: 2.105 MB / 1.071 GB, free: 84.18 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.41e-07/3.031, allocations: 0 / 1.071 GB, free: 84.18 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01/3.041, allocations: 1.454 MB / 1.072 GB, free: 84.18 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 2 (imcQS.rotorCage.port_p.reference.gamma,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (392): * Single equations (assignments): 387 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,39.8%) 44} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02235/3.063, allocations: 13.08 MB / 1.085 GB, free: 81.54 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01266/3.076, allocations: 6.948 MB / 1.092 GB, free: 81.29 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.407e-06/3.076, allocations: 4.469 kB / 1.092 GB, free: 81.29 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006545/3.083, allocations: 3.379 MB / 1.095 GB, free: 81.11 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005403/3.088, allocations: 0.7017 MB / 1.096 GB, free: 81.09 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04539/3.133, allocations: 16.86 MB / 1.112 GB, free: 78.33 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0107/3.144, allocations: 6.346 MB / 1.118 GB, free: 77.42 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.00852/3.153, allocations: 1.9 MB / 1.12 GB, free: 77.3 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005919/3.159, allocations: 3.229 MB / 1.124 GB, free: 77.3 MB / 490.7 MB Notification: Performance of SimCode: time 1.082e-06/3.159, allocations: 0 / 1.124 GB, free: 77.3 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5284/3.687, allocations: 119.9 MB / 1.241 GB, free: 63.8 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001865/3.687, allocations: 213.1 kB / 1.241 GB, free: 63.52 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.395/9.083, allocations: 6.281 kB / 1.241 GB, free: 63.52 MB / 490.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.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_Characteristics_res.mat does not exist to compare? outputFormat=mat