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.001486/0.001486, allocations: 176.4 kB / 8.346 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.436/1.436, allocations: 221.5 MB / 230.3 MB, free: 7.578 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.0008311/0.0008312, allocations: 87.61 kB / 281.2 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.311e-05/2.302e-05, allocations: 4 kB / 337.2 MB, free: 9.914 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.146, allocations: 50.43 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3954/0.5414, allocations: 130.9 MB / 0.5064 GB, free: 11.66 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002761/0.5417, allocations: 103.9 kB / 0.5065 GB, free: 11.56 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.573/2.115, allocations: 375.1 MB / 0.8728 GB, free: 28.35 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.064e-06/2.115, allocations: 0 / 0.8728 GB, free: 28.35 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008087/2.116, allocations: 239.2 kB / 0.873 GB, free: 28.35 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: 3035 * Number of variables: 3035 Notification: Performance of Generate backend data structure: time 0.04371/2.16, allocations: 10.17 MB / 0.8829 GB, free: 26.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.74e-05/2.16, allocations: 13.73 kB / 0.8829 GB, free: 26.79 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03646/2.196, allocations: 5.631 MB / 0.8884 GB, free: 26.23 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02513/2.221, allocations: 8.925 MB / 0.8972 GB, free: 25.2 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009778/2.222, allocations: 340.8 kB / 0.8975 GB, free: 25.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005405/2.228, allocations: 0.5978 MB / 0.8981 GB, free: 25.2 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03818/2.266, allocations: 14.3 MB / 0.912 GB, free: 25.15 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05284/2.319, allocations: 16.15 MB / 0.9278 GB, free: 23.96 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005407/2.32, allocations: 20.33 kB / 0.9278 GB, free: 23.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004421/2.324, allocations: 6.625 kB / 0.9278 GB, free: 23.95 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001088/2.325, allocations: 0.8633 MB / 0.9287 GB, free: 23.92 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1054/2.431, allocations: 57.77 MB / 0.9851 GB, free: 2.305 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04258/2.473, allocations: 38.11 MB / 1.022 GB, free: 1.266 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01242/2.486, allocations: 4.609 MB / 1.027 GB, free: 14.7 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001005/2.487, allocations: 192.8 kB / 1.027 GB, free: 14.52 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001772/2.487, allocations: 90.64 kB / 1.027 GB, free: 14.42 MB / 490.7 MB Notification: Performance of pre-optimization done (n=524): time 1.704e-05/2.487, allocations: 9.016 kB / 1.027 GB, free: 14.42 MB / 490.7 MB Notification: Performance of matching and sorting (n=530): time 0.3968/2.884, allocations: 18.85 MB / 1.045 GB, free: 72.32 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.098e-05/2.884, allocations: 105.2 kB / 1.046 GB, free: 72.25 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006631/2.891, allocations: 3.161 MB / 1.049 GB, free: 72.04 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001145/2.892, allocations: 29.98 kB / 1.049 GB, free: 72.01 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002656/2.894, allocations: 4.504 MB / 1.053 GB, free: 70.82 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002124/2.897, allocations: 1.725 MB / 1.055 GB, free: 69.68 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004763/2.897, allocations: 0 / 1.055 GB, free: 69.68 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003919/2.898, allocations: 0.5976 MB / 1.055 GB, free: 69.36 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005568/2.903, allocations: 3.454 MB / 1.059 GB, free: 69.34 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008507/2.912, allocations: 5.841 MB / 1.064 GB, free: 66.48 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01295/2.925, allocations: 5.876 MB / 1.07 GB, free: 66.39 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002128/2.925, allocations: 27.41 kB / 1.07 GB, free: 66.39 MB / 490.7 MB Notification: Performance of matching and sorting (n=917) (initialization): time 0.02391/2.949, allocations: 11.56 MB / 1.081 GB, free: 65.9 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001016/2.949, allocations: 40.31 kB / 1.082 GB, free: 65.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002136/2.949, allocations: 77.44 kB / 1.082 GB, free: 65.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003444/2.953, allocations: 1.447 MB / 1.083 GB, free: 65.88 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006866/2.959, allocations: 1.653 MB / 1.085 GB, free: 65.88 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01505/2.975, allocations: 10.64 MB / 1.095 GB, free: 64.36 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007018/2.982, allocations: 340.6 kB / 1.095 GB, free: 64.34 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002003/2.984, allocations: 336.5 kB / 1.096 GB, free: 64.34 MB / 490.7 MB 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 (838): * Single equations (assignments): 833 * 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%) 62} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001996/2.986, allocations: 319.6 kB / 1.096 GB, free: 64.19 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01613/3.002, allocations: 8.388 MB / 1.104 GB, free: 63.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001726/3.004, allocations: 456.3 kB / 1.105 GB, free: 63.46 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02965/3.033, allocations: 9.428 MB / 1.114 GB, free: 63.07 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01602/3.049, allocations: 8.076 MB / 1.122 GB, free: 62.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.298e-05/3.049, allocations: 13.56 kB / 1.122 GB, free: 62.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.899e-05/3.049, allocations: 28.55 kB / 1.122 GB, free: 62.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04097/3.09, allocations: 19.81 MB / 1.141 GB, free: 58.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.037e-05/3.091, allocations: 2.156 kB / 1.141 GB, free: 58.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005006/3.096, allocations: 0.99 MB / 1.142 GB, free: 58.67 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003721/3.099, allocations: 1.192 MB / 1.143 GB, free: 58.44 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001308/3.101, allocations: 34.41 kB / 1.143 GB, free: 58.43 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01189/3.113, allocations: 8.838 MB / 1.152 GB, free: 53.73 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.712e-06/3.113, allocations: 6.125 kB / 1.152 GB, free: 53.73 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02161/3.134, allocations: 13.63 MB / 1.165 GB, free: 46.49 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003413/3.138, allocations: 1.197 MB / 1.166 GB, free: 45.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001127/3.139, allocations: 4 kB / 1.166 GB, free: 45.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002937/3.142, allocations: 258.9 kB / 1.167 GB, free: 45.25 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006544/3.142, allocations: 352 kB / 1.167 GB, free: 45.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003114/3.143, allocations: 151.8 kB / 1.167 GB, free: 44.89 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0037/3.146, allocations: 2.298 MB / 1.169 GB, free: 42.91 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.1e-07/3.146, allocations: 0 / 1.169 GB, free: 42.91 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01/3.156, allocations: 1.733 MB / 1.171 GB, free: 41.19 MB / 490.7 MB 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,38.8%) 56} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03939/3.196, allocations: 14.96 MB / 1.186 GB, free: 28.18 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02482/3.221, allocations: 8.668 MB / 1.194 GB, free: 20.55 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.006e-05/3.221, allocations: 4 kB / 1.194 GB, free: 20.55 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01251/3.233, allocations: 4.26 MB / 1.198 GB, free: 16.83 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00756/3.241, allocations: 0.781 MB / 1.199 GB, free: 16.23 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04968/3.291, allocations: 19.87 MB / 1.218 GB, free: 15.79 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3293/3.62, allocations: 7.194 MB / 1.225 GB, free: 84 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.008597/3.629, allocations: 2.339 MB / 1.228 GB, free: 83.95 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008018/3.637, allocations: 3.882 MB / 1.232 GB, free: 83.95 MB / 0.4948 GB Notification: Performance of SimCode: time 1.302e-06/3.637, allocations: 2.938 kB / 1.232 GB, free: 83.95 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2321/3.869, allocations: 140.4 MB / 1.369 GB, free: 26.68 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001848/3.869, allocations: 211.7 kB / 1.369 GB, free: 26.39 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.203/10.07, allocations: 5.891 kB / 1.369 GB, free: 26.39 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