Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_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 3.2.3+maint.om/package.mo): time 0.001275/0.001275, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.413/1.413, allocations: 205.4 MB / 223.1 MB, free: 9.133 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008963/0.0008963, allocations: 92.11 kB / 271.5 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002542/0.0002543, allocations: 4 kB / 328.4 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2144/0.2147, allocations: 47.57 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3334/0.5481, allocations: 162.1 MB / 0.5255 GB, free: 65.27 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002875/0.5484, allocations: 110.1 kB / 0.5256 GB, free: 65.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.669/2.218, allocations: 0.5711 GB / 1.097 GB, free: 32.21 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.755e-06/2.218, allocations: 4 kB / 1.097 GB, free: 32.21 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001171/2.219, allocations: 427.7 kB / 1.097 GB, free: 32.14 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5087 * Number of variables: 5087 Notification: Performance of Generate backend data structure: time 0.05458/2.274, allocations: 18.04 MB / 1.115 GB, free: 26.49 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/2.274, allocations: 9.094 kB / 1.115 GB, free: 26.49 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01089/2.285, allocations: 2.993 MB / 1.118 GB, free: 26.29 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04415/2.329, allocations: 8.525 MB / 1.126 GB, free: 25.25 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02905/2.358, allocations: 14.59 MB / 1.14 GB, free: 19.96 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001443/2.359, allocations: 1.338 MB / 1.141 GB, free: 18.64 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006803/2.366, allocations: 1.743 MB / 1.143 GB, free: 16.91 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6147/2.981, allocations: 31.17 MB / 1.174 GB, free: 28.11 MB / 474.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000724/2.982, allocations: 24.44 kB / 1.174 GB, free: 28.11 MB / 474.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00542/2.987, allocations: 0.7487 MB / 1.174 GB, free: 28.11 MB / 474.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001188/2.988, allocations: 1.195 MB / 1.176 GB, free: 28.06 MB / 474.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05471/3.043, allocations: 27.66 MB / 1.203 GB, free: 27.89 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1698/3.213, allocations: 97.99 MB / 1.298 GB, free: 6.742 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03698/3.25, allocations: 35.56 MB / 1.333 GB, free: 14.34 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3492/3.599, allocations: 40.14 MB / 1.372 GB, free: 77.19 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001046/3.599, allocations: 144.8 kB / 1.372 GB, free: 77.14 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1283): time 1.544e-05/3.599, allocations: 3.688 kB / 1.372 GB, free: 77.14 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1291): time 0.2816/3.881, allocations: 106 MB / 1.476 GB, free: 64.25 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/3.881, allocations: 191 kB / 1.476 GB, free: 64.15 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009296/3.89, allocations: 5.021 MB / 1.481 GB, free: 62.75 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.002211/3.893, allocations: 205.4 kB / 1.481 GB, free: 62.59 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00347/3.896, allocations: 6.628 MB / 1.488 GB, free: 57.64 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.004607/3.901, allocations: 4.233 MB / 1.492 GB, free: 54.34 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002051/3.903, allocations: 222.6 kB / 1.492 GB, free: 54.16 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001006/3.904, allocations: 0.8128 MB / 1.493 GB, free: 53.64 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01349/3.917, allocations: 8.346 MB / 1.501 GB, free: 47.38 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01798/3.935, allocations: 10.48 MB / 1.511 GB, free: 37.53 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01934/3.955, allocations: 9.95 MB / 1.521 GB, free: 28.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001199/3.955, allocations: 16 kB / 1.521 GB, free: 28.68 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1574) (initialization): time 0.3281/4.283, allocations: 26.07 MB / 1.546 GB, free: 70.48 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 5.97e-05/4.283, allocations: 25.59 kB / 1.546 GB, free: 70.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001162/4.283, allocations: 54.56 kB / 1.546 GB, free: 70.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01646/4.3, allocations: 9.025 MB / 1.555 GB, free: 70.26 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007995/4.308, allocations: 1.89 MB / 1.557 GB, free: 70.26 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02792/4.336, allocations: 30.65 MB / 1.587 GB, free: 58.68 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008493/4.344, allocations: 0.5553 MB / 1.588 GB, free: 58.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002686/4.347, allocations: 468.4 kB / 1.588 GB, free: 58.68 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 244 * Number of states: 0 () * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (992): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 12 * 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: 7 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of prepare postOptimizeDAE: time 0.01456/4.361, allocations: 6.745 MB / 1.595 GB, free: 58.55 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003011/4.365, allocations: 0.8596 MB / 1.595 GB, free: 58.55 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04438/4.409, allocations: 25.76 MB / 1.621 GB, free: 57.53 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03581/4.445, allocations: 20.28 MB / 1.64 GB, free: 51.09 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.515e-05/4.445, allocations: 8.969 kB / 1.64 GB, free: 51.09 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002503/4.445, allocations: 52.94 kB / 1.64 GB, free: 51.09 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08414/4.529, allocations: 48.86 MB / 1.688 GB, free: 29.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.792e-05/4.529, allocations: 4 kB / 1.688 GB, free: 29.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006286/4.536, allocations: 1.377 MB / 1.689 GB, free: 28.01 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01708/4.553, allocations: 9.132 MB / 1.698 GB, free: 20.56 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002992/4.556, allocations: 274.5 kB / 1.699 GB, free: 20.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03744/4.593, allocations: 36.88 MB / 1.735 GB, free: 1.52 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/4.593, allocations: 6.344 kB / 1.735 GB, free: 1.516 MB / 0.5262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3425/4.936, allocations: 38.41 MB / 1.772 GB, free: 89.29 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01038/4.946, allocations: 2.827 MB / 1.775 GB, free: 89.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00438/4.951, allocations: 187.4 kB / 1.775 GB, free: 89.2 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008721/4.96, allocations: 0.5134 MB / 1.776 GB, free: 89.2 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004766/4.964, allocations: 0.9706 MB / 1.777 GB, free: 89.19 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003453/4.968, allocations: 350.6 kB / 1.777 GB, free: 89.19 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.008489/4.976, allocations: 3.835 MB / 1.781 GB, free: 88.98 MB / 0.5262 GB Notification: Performance of sort global known variables: time 8.52e-07/4.976, allocations: 2.625 kB / 1.781 GB, free: 88.98 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01901/4.995, allocations: 3.252 MB / 1.784 GB, free: 88.98 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.stator.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,ims.rotor.zeroInductor.i0,loadInertia.w,quadraticLoadTorque.phi,imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (730): * Single equations (assignments): 664 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 5,(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,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of Backend phase and start with SimCode phase: time 0.0742/5.07, allocations: 40.26 MB / 1.823 GB, free: 78.73 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.03993/5.11, allocations: 21.52 MB / 1.844 GB, free: 70.02 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 1.192e-05/5.11, allocations: 3.469 kB / 1.844 GB, free: 70.02 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.02393/5.134, allocations: 12.44 MB / 1.856 GB, free: 62.29 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01152/5.145, allocations: 1.96 MB / 1.858 GB, free: 60.84 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5698/5.715, allocations: 160.3 MB / 2.015 GB, free: 62.51 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02342/5.738, allocations: 11.93 MB / 2.026 GB, free: 61.38 MB / 0.5418 GB Notification: Performance of simCode: alias equations: time 0.01047/5.749, allocations: 2.643 MB / 2.029 GB, free: 61.3 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0121/5.761, allocations: 6.762 MB / 2.036 GB, free: 61.3 MB / 0.5418 GB Notification: Performance of SimCode: time 2.545e-06/5.761, allocations: 0 / 2.036 GB, free: 61.3 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.146/6.907, allocations: 343.3 MB / 2.371 GB, free: 59.57 MB / 0.5574 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002358/6.907, allocations: 263.8 kB / 2.371 GB, free: 59.21 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.893/16.8, allocations: 0 / 2.371 GB, free: 59.21 MB / 0.5574 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat