Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001633/0.001633, allocations: 196.4 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.386/1.386, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001105/0.001105, allocations: 88.16 kB / 292.1 MB, free: 5.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.608e-05/3.646e-05, allocations: 4 kB / 350.7 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1045, allocations: 51.49 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3816/0.4862, allocations: 131.5 MB / 0.5211 GB, free: 6.93 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/0.4865, allocations: 93.69 kB / 0.5212 GB, free: 6.879 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6572/1.144, allocations: 154.5 MB / 0.6721 GB, free: 65.61 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.687e-06/1.144, allocations: 3.984 kB / 0.6721 GB, free: 65.6 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0009501/1.145, allocations: 185.1 kB / 0.6723 GB, free: 65.57 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.02113/1.166, allocations: 6.614 MB / 0.6787 GB, free: 61.53 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/1.166, allocations: 18.94 kB / 0.6787 GB, free: 61.52 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003946/1.17, allocations: 0.9212 MB / 0.6796 GB, free: 60.85 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007874/1.178, allocations: 1.283 MB / 0.6809 GB, free: 60 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01821/1.196, allocations: 6.278 MB / 0.687 GB, free: 53.71 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004877/1.197, allocations: 0.4977 MB / 0.6875 GB, free: 53.21 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002663/1.199, allocations: 0.6639 MB / 0.6882 GB, free: 52.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02313/1.222, allocations: 9.158 MB / 0.6971 GB, free: 43.09 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003693/1.223, allocations: 11.91 kB / 0.6971 GB, free: 43.08 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002244/1.225, allocations: 292 kB / 0.6974 GB, free: 42.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002463/1.225, allocations: 293.4 kB / 0.6977 GB, free: 42.51 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01761/1.243, allocations: 7.441 MB / 0.7049 GB, free: 35.05 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05496/1.298, allocations: 29.65 MB / 0.7339 GB, free: 4.68 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2872/1.585, allocations: 12.06 MB / 0.7457 GB, free: 52.41 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006495/1.592, allocations: 3.295 MB / 0.7489 GB, free: 52.36 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01607/1.608, allocations: 7.104 MB / 0.7558 GB, free: 51.39 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.66e-05/1.608, allocations: 66.53 kB / 0.7559 GB, free: 51.35 MB / 442.7 MB Notification: Performance of pre-optimization done (n=306): time 8.946e-06/1.608, allocations: 3.562 kB / 0.7559 GB, free: 51.35 MB / 442.7 MB Notification: Performance of matching and sorting (n=325): time 0.02468/1.633, allocations: 11.95 MB / 0.7675 GB, free: 49.63 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.783e-05/1.633, allocations: 84.72 kB / 0.7676 GB, free: 49.56 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006918/1.64, allocations: 3.469 MB / 0.771 GB, free: 49.25 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008479/1.641, allocations: 80.48 kB / 0.7711 GB, free: 49.21 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002929/1.644, allocations: 3.089 MB / 0.7741 GB, free: 48.11 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001827/1.645, allocations: 1.101 MB / 0.7752 GB, free: 47.41 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003771/1.646, allocations: 74.81 kB / 0.7753 GB, free: 47.41 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002836/1.646, allocations: 453.4 kB / 0.7757 GB, free: 47.1 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00338/1.65, allocations: 1.798 MB / 0.7774 GB, free: 47.09 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00395/1.654, allocations: 2.699 MB / 0.7801 GB, free: 46.11 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004441/1.658, allocations: 2.221 MB / 0.7822 GB, free: 46.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.315e-05/1.658, allocations: 6.875 kB / 0.7823 GB, free: 46.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.01438/1.672, allocations: 6.212 MB / 0.7883 GB, free: 45.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.85e-05/1.673, allocations: 18.59 kB / 0.7883 GB, free: 45.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.714e-05/1.673, allocations: 26.94 kB / 0.7884 GB, free: 45.38 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003009/1.676, allocations: 1.253 MB / 0.7896 GB, free: 45.27 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004172/1.68, allocations: 0.8066 MB / 0.7904 GB, free: 45.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01712/1.697, allocations: 20.69 MB / 0.8106 GB, free: 29.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004065/1.701, allocations: 202.6 kB / 0.8108 GB, free: 29.39 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007477/1.702, allocations: 149.3 kB / 0.8109 GB, free: 29.36 MB / 442.7 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.001037/1.703, allocations: 335.9 kB / 0.8112 GB, free: 29.12 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001163/1.704, allocations: 449.1 kB / 0.8117 GB, free: 28.9 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01037/1.715, allocations: 5.96 MB / 0.8175 GB, free: 26.25 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.462e-05/1.715, allocations: 34.7 kB / 0.8175 GB, free: 26.25 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-05/1.715, allocations: 16.62 kB / 0.8175 GB, free: 26.25 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.706e-05/1.715, allocations: 19.69 kB / 0.8176 GB, free: 26.25 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02449/1.739, allocations: 12.27 MB / 0.8295 GB, free: 21.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.954e-05/1.739, allocations: 3.25 kB / 0.8295 GB, free: 21.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002331/1.742, allocations: 466.5 kB / 0.83 GB, free: 21.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003748/1.745, allocations: 1.604 MB / 0.8315 GB, free: 20.54 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005976/1.746, allocations: 72.31 kB / 0.8316 GB, free: 20.49 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02279/1.769, allocations: 30.14 MB / 0.8611 GB, free: 11.32 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/1.769, allocations: 5.812 kB / 0.8611 GB, free: 11.32 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01498/1.784, allocations: 8.854 MB / 0.8697 GB, free: 6.988 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003382/1.787, allocations: 0.9154 MB / 0.8706 GB, free: 6.43 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001562/1.789, allocations: 73 kB / 0.8707 GB, free: 6.383 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003156/1.792, allocations: 195.8 kB / 0.8709 GB, free: 6.344 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008934/1.793, allocations: 283.8 kB / 0.8711 GB, free: 6.297 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000288/1.793, allocations: 89.62 kB / 0.8712 GB, free: 6.277 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005878/1.799, allocations: 2.647 MB / 0.8738 GB, free: 5.254 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.799, allocations: 0 / 0.8738 GB, free: 5.254 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007946/1.807, allocations: 1.395 MB / 0.8752 GB, free: 4.352 MB / 458.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 () * 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%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(1,100.0%) 1,(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.02099/1.828, allocations: 10.81 MB / 0.8857 GB, free: 11.32 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0107/1.839, allocations: 6.164 MB / 0.8917 GB, free: 5.438 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.746e-06/1.839, allocations: 4.125 kB / 0.8917 GB, free: 5.434 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007888/1.847, allocations: 4.682 MB / 0.8963 GB, free: 0.9336 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008093/1.855, allocations: 1.276 MB / 0.8976 GB, free: 0 / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03472/1.89, allocations: 12.99 MB / 0.9102 GB, free: 4.715 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008394/1.898, allocations: 4.627 MB / 0.9148 GB, free: 1.27 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.005005/1.903, allocations: 1.043 MB / 0.9158 GB, free: 0.5547 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3175/2.221, allocations: 3.099 MB / 0.9188 GB, free: 96.87 MB / 490.7 MB Notification: Performance of SimCode: time 1.283e-06/2.221, allocations: 0 / 0.9188 GB, free: 96.87 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1981/2.419, allocations: 123.5 MB / 1.039 GB, free: 45.04 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002133/2.419, allocations: 216.3 kB / 1.04 GB, free: 44.81 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.798/8.217, allocations: 0 / 1.04 GB, free: 44.81 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.mat does not exist to compare? outputFormat=mat