Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.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.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",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.00109/0.00109, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.656/1.656, allocations: 221.5 MB / 230.3 MB, free: 7.547 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000823/0.0008229, allocations: 94.44 kB / 281.2 MB, free: 5.316 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.984e-05/1.989e-05, allocations: 0 / 337.1 MB, free: 9.914 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1068, allocations: 50.43 MB / 387.6 MB, free: 7.445 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4232/0.5301, allocations: 122.7 MB / 0.4984 GB, free: 3.848 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002903/0.5304, allocations: 95.94 kB / 0.4985 GB, free: 3.754 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5323/1.063, allocations: 116.4 MB / 0.6121 GB, free: 90.81 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.936e-06/1.063, allocations: 0 / 0.6121 GB, free: 90.81 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004796/1.063, allocations: 126.2 kB / 0.6122 GB, free: 90.79 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.0146/1.078, allocations: 4.942 MB / 0.617 GB, free: 87.68 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/1.078, allocations: 11.45 kB / 0.6171 GB, free: 87.68 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00579/1.084, allocations: 0.9996 MB / 0.618 GB, free: 87.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01078/1.095, allocations: 4.596 MB / 0.6225 GB, free: 83.98 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002248/1.095, allocations: 164 kB / 0.6227 GB, free: 83.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00142/1.096, allocations: 311.8 kB / 0.623 GB, free: 83.52 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01104/1.107, allocations: 5.14 MB / 0.628 GB, free: 78.38 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01536/1.123, allocations: 5.968 MB / 0.6338 GB, free: 72.21 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001613/1.123, allocations: 11.91 kB / 0.6338 GB, free: 72.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005652/1.123, allocations: 15.94 kB / 0.6338 GB, free: 72.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001916/1.124, allocations: 222.2 kB / 0.6341 GB, free: 71.96 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0331/1.157, allocations: 20.43 MB / 0.654 GB, free: 51.25 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006276/1.163, allocations: 8.56 MB / 0.6624 GB, free: 41.76 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002918/1.166, allocations: 2.103 MB / 0.6644 GB, free: 39.66 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01017/1.176, allocations: 5.987 MB / 0.6703 GB, free: 33.63 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.402e-05/1.176, allocations: 60.55 kB / 0.6703 GB, free: 33.56 MB / 426.7 MB Notification: Performance of pre-optimization done (n=220): time 4.298e-06/1.176, allocations: 0 / 0.6703 GB, free: 33.56 MB / 426.7 MB Notification: Performance of matching and sorting (n=239): time 0.01468/1.191, allocations: 8.204 MB / 0.6783 GB, free: 25.26 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.091e-05/1.191, allocations: 77.41 kB / 0.6784 GB, free: 25.18 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003115/1.194, allocations: 2.113 MB / 0.6805 GB, free: 23.05 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003337/1.195, allocations: 25.7 kB / 0.6805 GB, free: 23.02 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001023/1.196, allocations: 2.321 MB / 0.6828 GB, free: 20.67 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005132/1.196, allocations: 0.7735 MB / 0.6835 GB, free: 19.89 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001351/1.196, allocations: 0 / 0.6835 GB, free: 19.89 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/1.196, allocations: 419.9 kB / 0.6839 GB, free: 19.47 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001487/1.198, allocations: 1.24 MB / 0.6851 GB, free: 18.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00173/1.2, allocations: 1.976 MB / 0.6871 GB, free: 15.93 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002251/1.202, allocations: 1.716 MB / 0.6887 GB, free: 14.19 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-05/1.202, allocations: 4 kB / 0.6887 GB, free: 14.19 MB / 426.7 MB Notification: Performance of matching and sorting (n=365) (initialization): time 0.006454/1.208, allocations: 4.341 MB / 0.693 GB, free: 9.746 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.3e-05/1.208, allocations: 16 kB / 0.693 GB, free: 9.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.712e-05/1.208, allocations: 20 kB / 0.693 GB, free: 9.711 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001622/1.21, allocations: 0.7461 MB / 0.6937 GB, free: 8.934 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002373/1.212, allocations: 0.6318 MB / 0.6944 GB, free: 8.301 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00993/1.222, allocations: 12.81 MB / 0.7069 GB, free: 10.69 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002817/1.225, allocations: 99.78 kB / 0.707 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003524/1.226, allocations: 116 kB / 0.7071 GB, free: 10.48 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (322): * Single equations (assignments): 312 * 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: 7 * 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: 7 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005285/1.226, allocations: 182.4 kB / 0.7073 GB, free: 10.3 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006521/1.233, allocations: 3.772 MB / 0.7109 GB, free: 6.449 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000749/1.233, allocations: 288.4 kB / 0.7112 GB, free: 6.164 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007191/1.241, allocations: 4.025 MB / 0.7151 GB, free: 2.051 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.489e-05/1.241, allocations: 20 kB / 0.7152 GB, free: 2.031 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.836e-05/1.241, allocations: 12 kB / 0.7152 GB, free: 2.02 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.859e-05/1.241, allocations: 11.95 kB / 0.7152 GB, free: 2.008 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2953/1.536, allocations: 8.263 MB / 0.7233 GB, free: 95.83 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.799e-05/1.536, allocations: 4.562 kB / 0.7233 GB, free: 95.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001918/1.538, allocations: 389.7 kB / 0.7236 GB, free: 95.83 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00306/1.541, allocations: 0.9025 MB / 0.7245 GB, free: 95.76 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004068/1.542, allocations: 33.86 kB / 0.7245 GB, free: 95.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01681/1.559, allocations: 15.86 MB / 0.74 GB, free: 85.94 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.519e-05/1.559, allocations: 8.094 kB / 0.74 GB, free: 85.94 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0139/1.573, allocations: 6.158 MB / 0.7461 GB, free: 84.91 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002684/1.575, allocations: 0.6664 MB / 0.7467 GB, free: 84.81 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001443/1.577, allocations: 18.3 kB / 0.7467 GB, free: 84.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002604/1.579, allocations: 107.7 kB / 0.7468 GB, free: 84.81 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006179/1.58, allocations: 196.4 kB / 0.747 GB, free: 84.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002623/1.58, allocations: 69.64 kB / 0.7471 GB, free: 84.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004452/1.585, allocations: 1.573 MB / 0.7486 GB, free: 84.66 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.52e-07/1.585, allocations: 0 / 0.7486 GB, free: 84.66 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006335/1.591, allocations: 0.8964 MB / 0.7495 GB, free: 84.66 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.stator.zeroInductor.i0,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (180): * Single equations (assignments): 171 * 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: 8 * 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: 8 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(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.01179/1.603, allocations: 7.98 MB / 0.7573 GB, free: 82.16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005966/1.609, allocations: 4.266 MB / 0.7614 GB, free: 81.09 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/1.609, allocations: 5.344 kB / 0.7615 GB, free: 81.09 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004135/1.613, allocations: 2.859 MB / 0.7642 GB, free: 79.94 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004484/1.618, allocations: 0.6295 MB / 0.7649 GB, free: 79.79 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02626/1.644, allocations: 9.342 MB / 0.774 GB, free: 76.16 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005953/1.65, allocations: 3.526 MB / 0.7774 GB, free: 74.83 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003657/1.654, allocations: 0.7219 MB / 0.7781 GB, free: 74.75 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003335/1.657, allocations: 1.935 MB / 0.78 GB, free: 73.13 MB / 442.7 MB Notification: Performance of SimCode: time 2.014e-06/1.657, allocations: 0 / 0.78 GB, free: 73.13 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1232/1.78, allocations: 74.34 MB / 0.8526 GB, free: 19.57 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001527/1.781, allocations: 177.9 kB / 0.8528 GB, free: 19.38 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.293/6.074, allocations: 0 / 0.8528 GB, free: 19.38 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.mat does not exist to compare? outputFormat=mat