Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_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.IMC_DOL_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_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.001006/0.001005, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.255/1.255, allocations: 227.2 MB / 245 MB, free: 7.625 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008941/0.0008942, allocations: 97.73 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002383/0.0002384, allocations: 8 kB / 358 MB, free: 9.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2205, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3211/0.5417, allocations: 115.7 MB / 0.5129 GB, free: 46.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/0.542, allocations: 113.8 kB / 0.513 GB, free: 46.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6106/1.153, allocations: 189.5 MB / 0.6981 GB, free: 64.83 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.867e-06/1.153, allocations: 0 / 0.6981 GB, free: 64.83 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0007847/1.153, allocations: 195.2 kB / 0.6983 GB, free: 64.81 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: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.02578/1.179, allocations: 8.443 MB / 0.7065 GB, free: 62.08 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/1.179, allocations: 10.53 kB / 0.7065 GB, free: 62.08 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003827/1.183, allocations: 1.108 MB / 0.7076 GB, free: 61.99 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0111/1.194, allocations: 1.924 MB / 0.7095 GB, free: 61.51 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01679/1.211, allocations: 7.046 MB / 0.7164 GB, free: 60.55 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005437/1.212, allocations: 0.5905 MB / 0.717 GB, free: 60.53 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002839/1.215, allocations: 0.7863 MB / 0.7177 GB, free: 60.52 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02348/1.238, allocations: 10.97 MB / 0.7284 GB, free: 59.67 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003269/1.238, allocations: 12.58 kB / 0.7285 GB, free: 59.67 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002221/1.241, allocations: 346.1 kB / 0.7288 GB, free: 59.66 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000397/1.241, allocations: 367.1 kB / 0.7291 GB, free: 59.64 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01773/1.259, allocations: 9.317 MB / 0.7382 GB, free: 59.56 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05792/1.317, allocations: 34.72 MB / 0.7721 GB, free: 46.93 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01601/1.333, allocations: 21.04 MB / 0.7927 GB, free: 28.38 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01492/1.348, allocations: 8.347 MB / 0.8008 GB, free: 23.82 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.605e-05/1.348, allocations: 75.53 kB / 0.8009 GB, free: 23.75 MB / 474.7 MB Notification: Performance of pre-optimization done (n=337): time 4.117e-06/1.348, allocations: 0 / 0.8009 GB, free: 23.75 MB / 474.7 MB Notification: Performance of matching and sorting (n=419): time 0.05325/1.401, allocations: 20.77 MB / 0.8212 GB, free: 14.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.871e-05/1.401, allocations: 98.7 kB / 0.8213 GB, free: 14.39 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007825/1.409, allocations: 3.863 MB / 0.8251 GB, free: 11.11 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008074/1.41, allocations: 97.7 kB / 0.8251 GB, free: 11.01 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002812/1.413, allocations: 3.516 MB / 0.8286 GB, free: 7.883 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001628/1.414, allocations: 1.394 MB / 0.8299 GB, free: 6.625 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002796/1.415, allocations: 97.97 kB / 0.83 GB, free: 6.531 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000275/1.415, allocations: 487.6 kB / 0.8305 GB, free: 6.102 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003646/1.419, allocations: 2.291 MB / 0.8327 GB, free: 4.145 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00411/1.423, allocations: 3.321 MB / 0.836 GB, free: 0.8086 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01008/1.433, allocations: 3.338 MB / 0.8392 GB, free: 15.63 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.338e-05/1.433, allocations: 14 kB / 0.8393 GB, free: 15.62 MB / 490.7 MB Notification: Performance of matching and sorting (n=578) (initialization): time 0.0131/1.446, allocations: 7.694 MB / 0.8468 GB, free: 9.023 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.146e-05/1.446, allocations: 20.64 kB / 0.8468 GB, free: 9.004 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.087e-05/1.446, allocations: 32 kB / 0.8468 GB, free: 8.973 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003603/1.45, allocations: 1.506 MB / 0.8483 GB, free: 7.707 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003718/1.453, allocations: 0.8707 MB / 0.8491 GB, free: 6.969 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2759/1.729, allocations: 25.03 MB / 0.8736 GB, free: 65.86 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004175/1.734, allocations: 218 kB / 0.8738 GB, free: 65.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005749/1.734, allocations: 183.2 kB / 0.874 GB, free: 65.86 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * Number of states: 0 () * Number of discrete variables: 8 (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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (451): * Single equations (assignments): 440 * 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: 9 * 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: 9 {(1,100.0%) 5,(1,100.0%) 1,(6,72.2%) 46,(2,100.0%) 12,(1,100.0%) 1,(3,100.0%) 23,(1,100.0%) 2,(1,100.0%) 2,(4,56.2%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004918/1.739, allocations: 2.678 MB / 0.8766 GB, free: 65.75 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001136/1.74, allocations: 484.7 kB / 0.877 GB, free: 65.75 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01201/1.752, allocations: 7.508 MB / 0.8844 GB, free: 65.2 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.234e-05/1.752, allocations: 41.23 kB / 0.8844 GB, free: 65.2 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.835e-05/1.752, allocations: 30.88 kB / 0.8844 GB, free: 65.2 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.333e-05/1.752, allocations: 28.62 kB / 0.8845 GB, free: 65.2 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02714/1.78, allocations: 15.85 MB / 0.8999 GB, free: 64.16 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.601e-05/1.78, allocations: 3.656 kB / 0.9 GB, free: 64.16 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002223/1.782, allocations: 472.2 kB / 0.9004 GB, free: 64.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004874/1.787, allocations: 2.083 MB / 0.9024 GB, free: 64.05 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004404/1.787, allocations: 110.4 kB / 0.9025 GB, free: 64.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02919/1.816, allocations: 34.39 MB / 0.9361 GB, free: 45.25 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.431e-06/1.816, allocations: 11.86 kB / 0.9361 GB, free: 45.25 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0151/1.832, allocations: 11.23 MB / 0.9471 GB, free: 40.06 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003131/1.835, allocations: 1.096 MB / 0.9482 GB, free: 39.37 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001028/1.836, allocations: 99.38 kB / 0.9483 GB, free: 39.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002474/1.838, allocations: 223.7 kB / 0.9485 GB, free: 39.25 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001001/1.839, allocations: 439.8 kB / 0.9489 GB, free: 39.19 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002589/1.839, allocations: 115.5 kB / 0.949 GB, free: 39.16 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00413/1.844, allocations: 2.962 MB / 0.9519 GB, free: 38.05 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.31e-07/1.844, allocations: 2.312 kB / 0.9519 GB, free: 38.05 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005665/1.849, allocations: 1.673 MB / 0.9535 GB, free: 37.87 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (226): * 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): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 11 {(6,72.2%) 45,(2,100.0%) 12,(1,100.0%) 1,(6,72.2%) 46,(3,100.0%) 23,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01468/1.864, allocations: 13.1 MB / 0.9663 GB, free: 31.12 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01052/1.875, allocations: 7.512 MB / 0.9737 GB, free: 27.53 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.123e-05/1.875, allocations: 3.781 kB / 0.9737 GB, free: 27.53 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007194/1.882, allocations: 5.491 MB / 0.979 GB, free: 24.52 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0051/1.887, allocations: 1.195 MB / 0.9802 GB, free: 24.21 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3614/2.248, allocations: 70.52 MB / 1.049 GB, free: 95.48 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008253/2.257, allocations: 5.434 MB / 1.054 GB, free: 94.62 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.004879/2.262, allocations: 1.063 MB / 1.055 GB, free: 94.57 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005904/2.267, allocations: 3.153 MB / 1.058 GB, free: 94.57 MB / 0.5105 GB Notification: Performance of SimCode: time 1.092e-06/2.268, allocations: 0 / 1.058 GB, free: 94.57 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2029/2.47, allocations: 139.8 MB / 1.195 GB, free: 35.71 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001643/2.471, allocations: 283.4 kB / 1.195 GB, free: 35.35 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.502/7.973, allocations: 5.078 kB / 1.195 GB, free: 35.35 MB / 0.5105 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase_res.mat does not exist to compare? outputFormat=mat