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.IMS_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.IMS_Characteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_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.001174/0.001174, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 221.4 MB / 235.5 MB, free: 2.926 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.0009277/0.0009276, allocations: 99.78 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.167e-05/3.18e-05, allocations: 7.984 kB / 344 MB, free: 4.184 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1183, allocations: 50.42 MB / 394.4 MB, free: 1.727 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4331/0.5514, allocations: 131.6 MB / 0.5137 GB, free: 3.711 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003205/0.5518, allocations: 103.9 kB / 0.5138 GB, free: 3.609 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.752/2.303, allocations: 379.2 MB / 0.8841 GB, free: 34.71 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.126e-06/2.304, allocations: 4 kB / 0.8841 GB, free: 34.71 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0009832/2.305, allocations: 240.2 kB / 0.8843 GB, free: 34.71 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3035 * Number of variables: 3035 Notification: Performance of Generate backend data structure: time 0.04851/2.353, allocations: 10.17 MB / 0.8943 GB, free: 32.18 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.32e-05/2.353, allocations: 9.469 kB / 0.8943 GB, free: 32.18 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01086/2.364, allocations: 1.776 MB / 0.896 GB, free: 32.05 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0364/2.4, allocations: 5.648 MB / 0.9015 GB, free: 31.45 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02912/2.43, allocations: 8.93 MB / 0.9103 GB, free: 30.42 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001328/2.431, allocations: 0.7701 MB / 0.911 GB, free: 30.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00669/2.438, allocations: 1.009 MB / 0.912 GB, free: 30.39 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06044/2.498, allocations: 17.83 MB / 0.9294 GB, free: 29.16 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007899/2.499, allocations: 18.33 kB / 0.9294 GB, free: 29.15 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005713/2.505, allocations: 447.5 kB / 0.9299 GB, free: 29.15 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001406/2.506, allocations: 0.8633 MB / 0.9307 GB, free: 29.13 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04364/2.55, allocations: 16.05 MB / 0.9464 GB, free: 29.04 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.125/2.675, allocations: 58.45 MB / 1.003 GB, free: 2.918 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03921/2.714, allocations: 37.22 MB / 1.04 GB, free: 1.688 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01187/2.726, allocations: 4.291 MB / 1.044 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001002/2.727, allocations: 189.9 kB / 1.044 GB, free: 14.6 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001854/2.727, allocations: 86.64 kB / 1.044 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=524): time 1.693e-05/2.727, allocations: 0 / 1.044 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=530): time 0.04883/2.776, allocations: 15.55 MB / 1.059 GB, free: 0.6094 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001366/2.776, allocations: 103.5 kB / 1.06 GB, free: 0.4922 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4458/3.222, allocations: 3.558 MB / 1.063 GB, free: 80.97 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001414/3.224, allocations: 112 kB / 1.063 GB, free: 80.94 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004397/3.228, allocations: 4.509 MB / 1.068 GB, free: 79.84 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002871/3.231, allocations: 1.799 MB / 1.069 GB, free: 78.71 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006622/3.232, allocations: 142.7 kB / 1.069 GB, free: 78.71 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0005057/3.232, allocations: 0.5952 MB / 1.07 GB, free: 78.39 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008129/3.24, allocations: 3.361 MB / 1.073 GB, free: 78.38 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01045/3.251, allocations: 5.783 MB / 1.079 GB, free: 75.49 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01134/3.262, allocations: 4.73 MB / 1.084 GB, free: 75.39 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002731/3.263, allocations: 22.12 kB / 1.084 GB, free: 75.39 MB / 0.4948 GB Notification: Performance of matching and sorting (n=917) (initialization): time 0.02834/3.291, allocations: 10.76 MB / 1.094 GB, free: 74.91 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001708/3.291, allocations: 42.62 kB / 1.094 GB, free: 74.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002173/3.291, allocations: 81.03 kB / 1.094 GB, free: 74.91 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003797/3.295, allocations: 1.397 MB / 1.096 GB, free: 74.89 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007112/3.302, allocations: 1.605 MB / 1.097 GB, free: 74.89 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01588/3.318, allocations: 10.53 MB / 1.107 GB, free: 73.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007875/3.326, allocations: 416.8 kB / 1.108 GB, free: 73.33 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002364/3.329, allocations: 333.5 kB / 1.108 GB, free: 73.33 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 356 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (844): * Single equations (assignments): 839 * 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%) 56} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004348/3.333, allocations: 0.5422 MB / 1.109 GB, free: 73.17 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002434/3.335, allocations: 478.7 kB / 1.109 GB, free: 72.92 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01866/3.354, allocations: 8.366 MB / 1.117 GB, free: 72.54 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01223/3.366, allocations: 6.934 MB / 1.124 GB, free: 72.27 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.906e-05/3.366, allocations: 17.78 kB / 1.124 GB, free: 72.27 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001207/3.367, allocations: 31.78 kB / 1.124 GB, free: 72.27 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05911/3.426, allocations: 19.67 MB / 1.143 GB, free: 69.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.177e-05/3.426, allocations: 0 / 1.143 GB, free: 69.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004716/3.431, allocations: 0.9316 MB / 1.144 GB, free: 69.77 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003664/3.434, allocations: 1.216 MB / 1.145 GB, free: 69.53 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001451/3.436, allocations: 109.8 kB / 1.146 GB, free: 69.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0148/3.451, allocations: 9.115 MB / 1.154 GB, free: 64.64 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/3.451, allocations: 9.672 kB / 1.154 GB, free: 64.64 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02783/3.478, allocations: 12.23 MB / 1.166 GB, free: 59.33 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005143/3.484, allocations: 1.16 MB / 1.167 GB, free: 58.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002687/3.486, allocations: 94.09 kB / 1.168 GB, free: 58.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004992/3.491, allocations: 287.7 kB / 1.168 GB, free: 58.52 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001717/3.493, allocations: 346.8 kB / 1.168 GB, free: 58.47 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001083/3.494, allocations: 151.2 kB / 1.168 GB, free: 58.43 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007243/3.502, allocations: 2.649 MB / 1.171 GB, free: 57.39 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.91e-07/3.502, allocations: 0 / 1.171 GB, free: 57.39 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.013/3.515, allocations: 1.977 MB / 1.173 GB, free: 57.17 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (speed.phi,resistor.resistor[1].pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (502): * Single equations (assignments): 497 * 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.8%) 56} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02808/3.543, allocations: 13.75 MB / 1.186 GB, free: 46.14 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.019/3.562, allocations: 8.565 MB / 1.195 GB, free: 38.56 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.287e-05/3.562, allocations: 0 / 1.195 GB, free: 38.56 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009262/3.571, allocations: 4.093 MB / 1.199 GB, free: 34.95 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007721/3.579, allocations: 0.9931 MB / 1.2 GB, free: 34.17 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06855/3.648, allocations: 19.85 MB / 1.219 GB, free: 16.91 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0151/3.663, allocations: 7.198 MB / 1.226 GB, free: 11.44 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.009938/3.673, allocations: 2.336 MB / 1.228 GB, free: 9.918 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01108/3.684, allocations: 3.873 MB / 1.232 GB, free: 6.316 MB / 0.4948 GB Notification: Performance of SimCode: time 1.363e-06/3.684, allocations: 0 / 1.232 GB, free: 6.316 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6683/4.352, allocations: 150.3 MB / 1.379 GB, free: 19.39 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002705/4.352, allocations: 234.8 kB / 1.379 GB, free: 19.08 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.725/11.08, allocations: 0 / 1.379 GB, free: 19.08 MB / 0.4948 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_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.IMS_Characteristics_res.mat does not exist to compare? outputFormat=mat