Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.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.ComparisonPolyphase.IMC_DOL_Polyphase,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 180.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009031/0.0009032, allocations: 104.3 kB / 291.5 MB, free: 10.88 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002367/0.0002367, allocations: 7.984 kB / 351.2 MB, free: 15.16 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2133/0.2135, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.306/0.5196, allocations: 114.6 MB / 0.5041 GB, free: 100.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000233/0.5199, allocations: 115.4 kB / 0.5042 GB, free: 100.4 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6261/1.146, allocations: 183.5 MB / 0.6834 GB, free: 51.6 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.663e-06/1.146, allocations: 0 / 0.6834 GB, free: 51.6 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006997/1.147, allocations: 199.1 kB / 0.6836 GB, free: 51.58 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: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.02691/1.174, allocations: 8.38 MB / 0.6917 GB, free: 48.78 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.779e-05/1.174, allocations: 7.688 kB / 0.6917 GB, free: 48.78 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004089/1.178, allocations: 1.108 MB / 0.6928 GB, free: 48.69 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01052/1.188, allocations: 1.829 MB / 0.6946 GB, free: 48.21 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01728/1.206, allocations: 6.991 MB / 0.7014 GB, free: 47.26 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007343/1.206, allocations: 0.5953 MB / 0.702 GB, free: 47.24 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004036/1.211, allocations: 0.7952 MB / 0.7028 GB, free: 47.23 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0282/1.239, allocations: 10.97 MB / 0.7135 GB, free: 46.38 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003078/1.239, allocations: 10.78 kB / 0.7135 GB, free: 46.38 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002251/1.241, allocations: 338.4 kB / 0.7138 GB, free: 46.38 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000333/1.242, allocations: 362.7 kB / 0.7142 GB, free: 46.36 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02119/1.263, allocations: 9.322 MB / 0.7233 GB, free: 46.27 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06679/1.33, allocations: 34.54 MB / 0.757 GB, free: 30.94 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0174/1.347, allocations: 19.86 MB / 0.7764 GB, free: 13.63 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01876/1.366, allocations: 7.97 MB / 0.7842 GB, free: 9.535 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.365e-05/1.366, allocations: 79.89 kB / 0.7843 GB, free: 9.465 MB / 442.7 MB Notification: Performance of pre-optimization done (n=343): time 7.534e-06/1.366, allocations: 0 / 0.7843 GB, free: 9.465 MB / 442.7 MB Notification: Performance of matching and sorting (n=351): time 0.03997/1.406, allocations: 16.22 MB / 0.8001 GB, free: 13.21 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.884e-05/1.406, allocations: 88.98 kB / 0.8002 GB, free: 13.12 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007673/1.414, allocations: 3.836 MB / 0.8039 GB, free: 9.852 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001003/1.415, allocations: 91.77 kB / 0.804 GB, free: 9.758 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00313/1.418, allocations: 3.478 MB / 0.8074 GB, free: 6.664 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001432/1.42, allocations: 1.177 MB / 0.8086 GB, free: 5.605 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002532/1.42, allocations: 76 kB / 0.8087 GB, free: 5.531 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002256/1.42, allocations: 474.7 kB / 0.8091 GB, free: 5.109 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003037/1.423, allocations: 1.893 MB / 0.811 GB, free: 3.504 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00385/1.427, allocations: 2.878 MB / 0.8138 GB, free: 0.5625 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01022/1.437, allocations: 2.858 MB / 0.8166 GB, free: 15.69 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.865e-05/1.437, allocations: 12 kB / 0.8166 GB, free: 15.68 MB / 474.7 MB Notification: Performance of matching and sorting (n=510) (initialization): time 0.01158/1.449, allocations: 6.197 MB / 0.8226 GB, free: 10.24 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.065e-05/1.449, allocations: 16 kB / 0.8226 GB, free: 10.22 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-05/1.449, allocations: 28.69 kB / 0.8227 GB, free: 10.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002139/1.451, allocations: 0.8332 MB / 0.8235 GB, free: 9.492 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003729/1.455, allocations: 0.8407 MB / 0.8243 GB, free: 8.773 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2578/1.713, allocations: 15.43 MB / 0.8394 GB, free: 70.97 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004443/1.717, allocations: 188 kB / 0.8395 GB, free: 70.97 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000684/1.718, allocations: 165 kB / 0.8397 GB, free: 70.97 MB / 474.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 (444): * Single equations (assignments): 435 * 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: 7 * 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: 7 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 23,(1,100.0%) 2,(1,100.0%) 2,(4,68.8%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005859/1.724, allocations: 2.59 MB / 0.8422 GB, free: 70.86 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001374/1.725, allocations: 459.3 kB / 0.8427 GB, free: 70.86 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009749/1.735, allocations: 5.95 MB / 0.8485 GB, free: 70.36 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.771e-05/1.735, allocations: 32.41 kB / 0.8485 GB, free: 70.36 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-05/1.735, allocations: 21.16 kB / 0.8485 GB, free: 70.36 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.671e-05/1.735, allocations: 20.88 kB / 0.8485 GB, free: 70.35 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02192/1.757, allocations: 13.6 MB / 0.8618 GB, free: 69.32 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.34e-05/1.757, allocations: 3.031 kB / 0.8618 GB, free: 69.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001851/1.759, allocations: 436.3 kB / 0.8622 GB, free: 69.32 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003318/1.762, allocations: 1.375 MB / 0.8636 GB, free: 69.25 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002803/1.763, allocations: 97.12 kB / 0.8637 GB, free: 69.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02133/1.784, allocations: 24.58 MB / 0.8877 GB, free: 57.45 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/1.784, allocations: 3.75 kB / 0.8877 GB, free: 57.45 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01367/1.798, allocations: 9.049 MB / 0.8965 GB, free: 55.89 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002836/1.8, allocations: 0.9894 MB / 0.8975 GB, free: 55.74 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001034/1.802, allocations: 83.44 kB / 0.8976 GB, free: 55.74 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002387/1.804, allocations: 188.7 kB / 0.8978 GB, free: 55.74 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007217/1.805, allocations: 348.5 kB / 0.8981 GB, free: 55.69 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002219/1.805, allocations: 97.66 kB / 0.8982 GB, free: 55.67 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004795/1.81, allocations: 2.939 MB / 0.901 GB, free: 54.56 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.8e-07/1.81, allocations: 2.719 kB / 0.901 GB, free: 54.56 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006147/1.816, allocations: 1.492 MB / 0.9025 GB, free: 54.42 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (221): * Single equations (assignments): 212 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(6,72.2%) 46,(3,100.0%) 23,(1,100.0%) 1,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01318/1.829, allocations: 11.06 MB / 0.9133 GB, free: 48.31 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007898/1.837, allocations: 5.873 MB / 0.919 GB, free: 45.57 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/1.837, allocations: 3.594 kB / 0.9191 GB, free: 45.57 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006167/1.843, allocations: 4.286 MB / 0.9232 GB, free: 43.26 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005475/1.849, allocations: 1.172 MB / 0.9244 GB, free: 42.97 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0959/1.945, allocations: 65.85 MB / 0.9887 GB, free: 7.805 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009104/1.954, allocations: 5.255 MB / 0.9938 GB, free: 3.902 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006999/1.961, allocations: 1.038 MB / 0.9948 GB, free: 3.184 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006934/1.968, allocations: 3.024 MB / 0.9978 GB, free: 380 kB / 490.7 MB Notification: Performance of SimCode: time 1.362e-06/1.968, allocations: 0 / 0.9978 GB, free: 380 kB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4534/2.421, allocations: 127.4 MB / 1.122 GB, free: 81 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000207/2.421, allocations: 273.8 kB / 1.123 GB, free: 80.64 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.707/8.129, allocations: 0 / 1.123 GB, free: 80.64 MB / 0.4948 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase.fmu > Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase_res.mat does not exist to compare? outputFormat=mat