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.0009711/0.0009709, 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.346/1.346, allocations: 221.5 MB / 230.3 MB, free: 7.508 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.0008989/0.0008989, allocations: 99.39 kB / 281.2 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.778e-05/1.788e-05, allocations: 4 kB / 337.2 MB, free: 9.883 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1011, allocations: 50.42 MB / 387.6 MB, free: 7.426 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3759/0.4771, allocations: 129.7 MB / 0.5052 GB, free: 12.82 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.4775, allocations: 95.94 kB / 0.5053 GB, free: 12.72 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5657/1.043, allocations: 148.9 MB / 0.6507 GB, free: 56.42 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.625e-06/1.043, allocations: 0 / 0.6507 GB, free: 56.42 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009259/1.044, allocations: 178.7 kB / 0.6509 GB, free: 56.25 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: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.02097/1.065, allocations: 6.595 MB / 0.6573 GB, free: 49.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/1.065, allocations: 12.03 kB / 0.6574 GB, free: 49.58 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007124/1.072, allocations: 1.244 MB / 0.6586 GB, free: 48.33 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0135/1.086, allocations: 6.223 MB / 0.6646 GB, free: 42.14 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000329/1.086, allocations: 220 kB / 0.6649 GB, free: 41.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002171/1.089, allocations: 407.8 kB / 0.6652 GB, free: 41.53 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01325/1.102, allocations: 7.017 MB / 0.6721 GB, free: 34.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01731/1.119, allocations: 8.167 MB / 0.6801 GB, free: 26.05 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002039/1.119, allocations: 23.78 kB / 0.6801 GB, free: 26.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007715/1.12, allocations: 8 kB / 0.6801 GB, free: 26.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000219/1.12, allocations: 289.4 kB / 0.6804 GB, free: 25.73 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5758/1.696, allocations: 28.12 MB / 0.7078 GB, free: 53.38 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01584/1.712, allocations: 11.57 MB / 0.7191 GB, free: 45.92 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007132/1.719, allocations: 3.139 MB / 0.7222 GB, free: 45.87 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01669/1.736, allocations: 6.571 MB / 0.7286 GB, free: 45.18 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.853e-05/1.736, allocations: 71.78 kB / 0.7287 GB, free: 45.13 MB / 426.8 MB Notification: Performance of pre-optimization done (n=306): time 5.14e-06/1.736, allocations: 0 / 0.7287 GB, free: 45.13 MB / 426.8 MB Notification: Performance of matching and sorting (n=325): time 0.02197/1.758, allocations: 11.04 MB / 0.7395 GB, free: 43.36 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/1.758, allocations: 84.91 kB / 0.7395 GB, free: 43.29 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005073/1.763, allocations: 2.792 MB / 0.7423 GB, free: 43.05 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000924/1.764, allocations: 26.73 kB / 0.7423 GB, free: 43.02 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00222/1.766, allocations: 3.082 MB / 0.7453 GB, free: 41.85 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001426/1.768, allocations: 1.049 MB / 0.7463 GB, free: 41.16 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002273/1.768, allocations: 0 / 0.7463 GB, free: 41.16 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.000257/1.768, allocations: 457.1 kB / 0.7468 GB, free: 40.85 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002533/1.771, allocations: 1.714 MB / 0.7484 GB, free: 40.84 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002803/1.774, allocations: 2.598 MB / 0.751 GB, free: 39.86 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003184/1.777, allocations: 2.264 MB / 0.7532 GB, free: 39.81 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.821e-05/1.777, allocations: 10 kB / 0.7532 GB, free: 39.81 MB / 426.8 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.009439/1.786, allocations: 5.903 MB / 0.759 GB, free: 39.16 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.671e-05/1.787, allocations: 17.28 kB / 0.759 GB, free: 39.16 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.262e-05/1.787, allocations: 29.78 kB / 0.759 GB, free: 39.16 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002509/1.789, allocations: 1.214 MB / 0.7602 GB, free: 39.05 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003482/1.793, allocations: 0.8066 MB / 0.761 GB, free: 39.05 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01429/1.807, allocations: 19.86 MB / 0.7804 GB, free: 24.05 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004083/1.811, allocations: 121.5 kB / 0.7805 GB, free: 24.05 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007766/1.812, allocations: 151.5 kB / 0.7806 GB, free: 24.02 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 121 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (416): * Single equations (assignments): 402 * 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.0008895/1.813, allocations: 209 kB / 0.7808 GB, free: 23.88 MB / 426.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.008922/1.822, allocations: 5.434 MB / 0.7861 GB, free: 21.53 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001456/1.823, allocations: 403.3 kB / 0.7865 GB, free: 21.32 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009854/1.833, allocations: 5.75 MB / 0.7921 GB, free: 18.85 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.669e-05/1.833, allocations: 29.78 kB / 0.7922 GB, free: 18.85 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.16e-05/1.833, allocations: 16.5 kB / 0.7922 GB, free: 18.85 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.052e-05/1.833, allocations: 14.81 kB / 0.7922 GB, free: 18.85 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02547/1.859, allocations: 11.19 MB / 0.8031 GB, free: 14.16 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.406e-05/1.859, allocations: 6.094 kB / 0.8031 GB, free: 14.16 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00319/1.862, allocations: 464.2 kB / 0.8036 GB, free: 14.14 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005112/1.867, allocations: 1.554 MB / 0.8051 GB, free: 13.62 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005779/1.868, allocations: 29.34 kB / 0.8051 GB, free: 13.61 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03303/1.901, allocations: 28.98 MB / 0.8334 GB, free: 4.266 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.12e-05/1.901, allocations: 5.688 kB / 0.8334 GB, free: 4.262 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02073/1.922, allocations: 8.652 MB / 0.8419 GB, free: 12.47 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003736/1.925, allocations: 0.8591 MB / 0.8427 GB, free: 11.68 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001519/1.927, allocations: 16 kB / 0.8427 GB, free: 11.66 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003886/1.931, allocations: 151.7 kB / 0.8429 GB, free: 11.57 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00102/1.932, allocations: 278.6 kB / 0.8431 GB, free: 11.41 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003911/1.932, allocations: 95.17 kB / 0.8432 GB, free: 11.32 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.005253/1.938, allocations: 2.074 MB / 0.8453 GB, free: 9.5 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.282e-06/1.938, allocations: 0 / 0.8453 GB, free: 9.5 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.007684/1.945, allocations: 1.212 MB / 0.8464 GB, free: 8.301 MB / 458.8 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (232): * Single equations (assignments): 215 * 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%) 1,(1,100.0%) 8,(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.02513/1.97, allocations: 10.47 MB / 0.8567 GB, free: 15.61 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.01306/1.984, allocations: 5.888 MB / 0.8624 GB, free: 10.08 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/1.984, allocations: 0 / 0.8624 GB, free: 10.08 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009039/1.993, allocations: 4.518 MB / 0.8668 GB, free: 5.797 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008245/2.001, allocations: 0.9417 MB / 0.8677 GB, free: 5.074 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3318/2.333, allocations: 13.32 MB / 0.8808 GB, free: 96.41 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008256/2.341, allocations: 4.612 MB / 0.8853 GB, free: 95.56 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.004585/2.346, allocations: 0.9757 MB / 0.8862 GB, free: 95.52 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004535/2.35, allocations: 2.657 MB / 0.8888 GB, free: 95.52 MB / 474.8 MB Notification: Performance of SimCode: time 1.082e-06/2.35, allocations: 2.75 kB / 0.8888 GB, free: 95.52 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1661/2.516, allocations: 104.2 MB / 0.9906 GB, free: 50.58 MB / 474.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/2.517, allocations: 180.7 kB / 0.9907 GB, free: 50.39 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.342/7.859, allocations: 0 / 0.9907 GB, free: 50.39 MB / 474.8 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