Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.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.ComparisonPolyphase.IMS_Start_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001509/0.001509, allocations: 196.8 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.356/1.356, 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.0009159/0.000916, allocations: 90.58 kB / 292.1 MB, free: 5.941 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.117e-05/3.127e-05, allocations: 11.98 kB / 350.7 MB, free: 2.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1152, allocations: 51.49 MB / 402.2 MB, free: 14.87 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4123/0.5276, allocations: 119.1 MB / 0.5091 GB, free: 3.02 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003822/0.528, allocations: 104.3 kB / 0.5092 GB, free: 2.961 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8352/1.363, allocations: 228.3 MB / 0.7322 GB, free: 6.098 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.605e-06/1.363, allocations: 4 kB / 0.7322 GB, free: 6.094 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001244/1.365, allocations: 247.7 kB / 0.7324 GB, free: 5.852 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: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.338/1.703, allocations: 9.653 MB / 0.7418 GB, free: 18.92 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.77e-05/1.703, allocations: 7.812 kB / 0.7418 GB, free: 18.92 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006581/1.709, allocations: 1.376 MB / 0.7432 GB, free: 18.82 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01503/1.724, allocations: 2.213 MB / 0.7453 GB, free: 18.22 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02529/1.75, allocations: 8.988 MB / 0.7541 GB, free: 17.42 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009322/1.751, allocations: 0.7424 MB / 0.7548 GB, free: 17.4 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004675/1.755, allocations: 0.9879 MB / 0.7558 GB, free: 17.39 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04315/1.798, allocations: 13.77 MB / 0.7692 GB, free: 16.25 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007814/1.799, allocations: 8.5 kB / 0.7693 GB, free: 16.25 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005294/1.805, allocations: 432.3 kB / 0.7697 GB, free: 16.25 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007067/1.805, allocations: 454.8 kB / 0.7701 GB, free: 16.23 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03034/1.836, allocations: 11.44 MB / 0.7813 GB, free: 16.13 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1063/1.942, allocations: 44.53 MB / 0.8248 GB, free: 15.81 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03148/1.974, allocations: 26.57 MB / 0.8507 GB, free: 8.445 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01376/1.988, allocations: 6.249 MB / 0.8568 GB, free: 6.609 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03443/2.022, allocations: 13.49 MB / 0.87 GB, free: 0 / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001241/2.022, allocations: 84.28 kB / 0.8701 GB, free: 15.93 MB / 490.7 MB Notification: Performance of pre-optimization done (n=421): time 1.217e-05/2.022, allocations: 0 / 0.8701 GB, free: 15.93 MB / 490.7 MB Notification: Performance of matching and sorting (n=427): time 0.03136/2.054, allocations: 14.3 MB / 0.884 GB, free: 9.129 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.862e-05/2.054, allocations: 98.02 kB / 0.8841 GB, free: 9.062 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009145/2.063, allocations: 4.703 MB / 0.8887 GB, free: 7.344 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009543/2.064, allocations: 99.14 kB / 0.8888 GB, free: 7.258 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003529/2.067, allocations: 4.447 MB / 0.8932 GB, free: 3.906 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001782/2.069, allocations: 1.416 MB / 0.8945 GB, free: 2.809 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004286/2.07, allocations: 97.22 kB / 0.8946 GB, free: 2.734 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003017/2.07, allocations: 0.4911 MB / 0.8951 GB, free: 2.332 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00419/2.074, allocations: 2.319 MB / 0.8974 GB, free: 244 kB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0146/2.089, allocations: 4.184 MB / 0.9015 GB, free: 14.49 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005345/2.094, allocations: 2.865 MB / 0.9043 GB, free: 12.1 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.294e-05/2.094, allocations: 12 kB / 0.9043 GB, free: 12.09 MB / 0.4948 GB Notification: Performance of matching and sorting (n=614) (initialization): time 0.01631/2.111, allocations: 8.107 MB / 0.9122 GB, free: 5.078 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.781e-05/2.111, allocations: 21.25 kB / 0.9122 GB, free: 5.059 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.701e-05/2.111, allocations: 32 kB / 0.9122 GB, free: 5.027 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00449/2.115, allocations: 1.666 MB / 0.9139 GB, free: 3.656 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004882/2.12, allocations: 0.9667 MB / 0.9148 GB, free: 2.891 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.6238/2.744, allocations: 28.11 MB / 0.9423 GB, free: 62.82 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005329/2.749, allocations: 232.5 kB / 0.9425 GB, free: 62.82 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009769/2.75, allocations: 191 kB / 0.9427 GB, free: 62.82 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 150 * Number of states: 0 () * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (521): * Single equations (assignments): 505 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 14 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(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: 14 {(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%) 1,(4,75.0%) 24,(2,100.0%) 6,(2,100.0%) 6,(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.0009757/2.751, allocations: 407.5 kB / 0.9431 GB, free: 62.71 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001733/2.753, allocations: 0.577 MB / 0.9436 GB, free: 62.71 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01377/2.767, allocations: 8.013 MB / 0.9514 GB, free: 61.94 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.182e-05/2.767, allocations: 40.97 kB / 0.9515 GB, free: 61.94 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.663e-05/2.767, allocations: 29 kB / 0.9515 GB, free: 61.94 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.682e-05/2.767, allocations: 21.95 kB / 0.9515 GB, free: 61.93 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0305/2.798, allocations: 16.82 MB / 0.968 GB, free: 60.71 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-05/2.798, allocations: 3.031 kB / 0.968 GB, free: 60.71 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002288/2.8, allocations: 452.9 kB / 0.9684 GB, free: 60.71 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005661/2.806, allocations: 2.41 MB / 0.9707 GB, free: 60.59 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000926/2.807, allocations: 100.5 kB / 0.9708 GB, free: 60.59 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03355/2.84, allocations: 35.87 MB / 1.006 GB, free: 43.71 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.57e-06/2.84, allocations: 4.578 kB / 1.006 GB, free: 43.71 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01565/2.856, allocations: 11.79 MB / 1.017 GB, free: 38.75 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004212/2.86, allocations: 1.209 MB / 1.019 GB, free: 38.07 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001721/2.862, allocations: 90.91 kB / 1.019 GB, free: 38.01 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003837/2.866, allocations: 257.6 kB / 1.019 GB, free: 37.96 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001452/2.867, allocations: 430.1 kB / 1.019 GB, free: 37.89 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004473/2.868, allocations: 120.2 kB / 1.019 GB, free: 37.87 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.007956/2.876, allocations: 3.595 MB / 1.023 GB, free: 36.53 MB / 0.4949 GB Notification: Performance of sort global known variables: time 6.01e-07/2.876, allocations: 0 / 1.023 GB, free: 36.53 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01013/2.886, allocations: 1.939 MB / 1.025 GB, free: 36.34 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,aims3.rotor.zeroInductor.i0,loadInertiaM.w,loadInertia3.w,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (238): * Single equations (assignments): 225 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 13 {(1,100.0%) 8,(6,80.6%) 46,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(11,49.6%) 56,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01968/2.906, allocations: 13.5 MB / 1.038 GB, free: 29.66 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01224/2.918, allocations: 7.822 MB / 1.046 GB, free: 25.66 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.132e-05/2.918, allocations: 4 kB / 1.046 GB, free: 25.65 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.008686/2.927, allocations: 5.616 MB / 1.051 GB, free: 22.47 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009787/2.937, allocations: 1.626 MB / 1.053 GB, free: 22.1 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04258/2.979, allocations: 18.22 MB / 1.071 GB, free: 13.76 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008805/2.988, allocations: 6.565 MB / 1.077 GB, free: 8.938 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.006092/2.994, allocations: 1.268 MB / 1.078 GB, free: 8.059 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005896/3, allocations: 3.929 MB / 1.082 GB, free: 4.395 MB / 0.4949 GB Notification: Performance of SimCode: time 1.403e-06/3, allocations: 0 / 1.082 GB, free: 4.395 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5404/3.541, allocations: 168.9 MB / 1.247 GB, free: 44.77 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000265/3.541, allocations: 247.4 kB / 1.247 GB, free: 44.43 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.522/11.06, allocations: 0 / 1.247 GB, free: 44.43 MB / 0.5105 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMS_Start_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMS_Start_Polyphase_res.mat does not exist to compare? outputFormat=mat