Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",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.001005/0.001005, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.268/1.268, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008877/0.0008876, allocations: 94.88 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002429/0.0002429, allocations: 4 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2022/0.2025, allocations: 50.4 MB / 401.6 MB, free: 32.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.337/0.5395, allocations: 130.5 MB / 0.5196 GB, free: 53.19 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000275/0.5398, allocations: 108 kB / 0.5197 GB, free: 53.19 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5772/1.117, allocations: 150.7 MB / 0.6669 GB, free: 43.58 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.595e-06/1.117, allocations: 0 / 0.6669 GB, free: 43.58 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007297/1.118, allocations: 182.4 kB / 0.6671 GB, free: 43.58 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02141/1.139, allocations: 7.307 MB / 0.6742 GB, free: 41.91 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/1.139, allocations: 11.72 kB / 0.6742 GB, free: 41.91 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003722/1.143, allocations: 0.935 MB / 0.6751 GB, free: 41.84 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007605/1.151, allocations: 1.248 MB / 0.6763 GB, free: 41.43 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01394/1.165, allocations: 6.272 MB / 0.6825 GB, free: 40.52 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003356/1.165, allocations: 0.5004 MB / 0.6829 GB, free: 40.5 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001625/1.167, allocations: 0.6609 MB / 0.6836 GB, free: 40.49 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01769/1.184, allocations: 9.326 MB / 0.6927 GB, free: 39.56 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002189/1.185, allocations: 14.5 kB / 0.6927 GB, free: 39.55 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001127/1.186, allocations: 289.3 kB / 0.693 GB, free: 39.55 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002045/1.186, allocations: 296.7 kB / 0.6933 GB, free: 39.54 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01565/1.202, allocations: 7.671 MB / 0.7008 GB, free: 39.48 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05254/1.254, allocations: 29.44 MB / 0.7295 GB, free: 33.16 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009758/1.264, allocations: 11.88 MB / 0.7411 GB, free: 23.92 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01278/1.277, allocations: 6.962 MB / 0.7479 GB, free: 36.54 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.452e-05/1.277, allocations: 73.55 kB / 0.748 GB, free: 36.47 MB / 458.7 MB Notification: Performance of pre-optimization done (n=323): time 4.378e-06/1.277, allocations: 0 / 0.748 GB, free: 36.47 MB / 458.7 MB Notification: Performance of matching and sorting (n=342): time 0.02972/1.307, allocations: 16.46 MB / 0.7641 GB, free: 28.59 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.706e-05/1.307, allocations: 86.16 kB / 0.7641 GB, free: 28.52 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005837/1.313, allocations: 3.484 MB / 0.7675 GB, free: 27.23 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007443/1.313, allocations: 84.02 kB / 0.7676 GB, free: 27.16 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001708/1.315, allocations: 3.049 MB / 0.7706 GB, free: 24.85 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001061/1.316, allocations: 1.145 MB / 0.7717 GB, free: 23.96 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002005/1.316, allocations: 73.59 kB / 0.7718 GB, free: 23.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002272/1.317, allocations: 459.9 kB / 0.7722 GB, free: 23.53 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002619/1.319, allocations: 1.935 MB / 0.7741 GB, free: 22.82 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003258/1.322, allocations: 2.82 MB / 0.7769 GB, free: 21.07 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003381/1.326, allocations: 2.355 MB / 0.7792 GB, free: 20.07 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.491e-05/1.326, allocations: 7.625 kB / 0.7792 GB, free: 20.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=492) (initialization): time 0.00982/1.336, allocations: 6.504 MB / 0.7855 GB, free: 17.44 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.242e-05/1.336, allocations: 15.91 kB / 0.7855 GB, free: 17.44 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.608e-05/1.336, allocations: 31.16 kB / 0.7856 GB, free: 17.44 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002594/1.338, allocations: 1.264 MB / 0.7868 GB, free: 17 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003837/1.342, allocations: 0.8359 MB / 0.7876 GB, free: 16.96 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01797/1.36, allocations: 21.12 MB / 0.8082 GB, free: 14.36 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004225/1.365, allocations: 203.3 kB / 0.8084 GB, free: 14.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006836/1.365, allocations: 151.2 kB / 0.8086 GB, free: 14.06 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 117 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (429): * Single equations (assignments): 415 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(2,100.0%) 14,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005064/1.37, allocations: 2.189 MB / 0.8107 GB, free: 12.21 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001218/1.372, allocations: 450.5 kB / 0.8112 GB, free: 11.76 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01108/1.383, allocations: 6.292 MB / 0.8173 GB, free: 6.332 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.8e-05/1.383, allocations: 32 kB / 0.8173 GB, free: 6.301 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.431e-05/1.383, allocations: 19.95 kB / 0.8173 GB, free: 6.281 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.461e-05/1.383, allocations: 15.38 kB / 0.8174 GB, free: 6.281 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0286/1.411, allocations: 13.06 MB / 0.8301 GB, free: 12.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.72e-05/1.411, allocations: 8.094 kB / 0.8301 GB, free: 12.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002415/1.414, allocations: 493.3 kB / 0.8306 GB, free: 12.28 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004052/1.418, allocations: 1.629 MB / 0.8322 GB, free: 10.97 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004672/1.418, allocations: 84.7 kB / 0.8323 GB, free: 10.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3082/1.727, allocations: 30.72 MB / 0.8623 GB, free: 68.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/1.727, allocations: 3.844 kB / 0.8623 GB, free: 68.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01523/1.742, allocations: 9.368 MB / 0.8714 GB, free: 67.29 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003177/1.745, allocations: 0.9386 MB / 0.8723 GB, free: 67.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001047/1.746, allocations: 73.88 kB / 0.8724 GB, free: 67.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002351/1.749, allocations: 208.3 kB / 0.8726 GB, free: 67.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007357/1.749, allocations: 289.7 kB / 0.8729 GB, free: 67.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002323/1.75, allocations: 96.39 kB / 0.873 GB, free: 67.19 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004384/1.754, allocations: 2.665 MB / 0.8756 GB, free: 67.01 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.293e-06/1.754, allocations: 0 / 0.8756 GB, free: 67.01 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006978/1.761, allocations: 1.397 MB / 0.8769 GB, free: 67.01 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.stator.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (249): * Single equations (assignments): 232 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 16 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01493/1.776, allocations: 11.01 MB / 0.8877 GB, free: 64.52 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009361/1.785, allocations: 6.514 MB / 0.8941 GB, free: 62.89 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.078e-05/1.785, allocations: 0 / 0.8941 GB, free: 62.89 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006835/1.792, allocations: 4.904 MB / 0.8988 GB, free: 60.94 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006566/1.799, allocations: 1.26 MB / 0.9001 GB, free: 60.92 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08096/1.88, allocations: 60.47 MB / 0.9591 GB, free: 25.71 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006152/1.886, allocations: 4.618 MB / 0.9636 GB, free: 24.12 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004307/1.89, allocations: 1.063 MB / 0.9647 GB, free: 24.01 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003617/1.894, allocations: 2.67 MB / 0.9673 GB, free: 21.78 MB / 490.7 MB Notification: Performance of SimCode: time 7.72e-07/1.894, allocations: 0 / 0.9673 GB, free: 21.78 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4274/2.322, allocations: 123 MB / 1.087 GB, free: 76.3 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001445/2.322, allocations: 240 kB / 1.088 GB, free: 76.07 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.843/8.165, allocations: 0 / 1.088 GB, free: 76.07 MB / 490.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat