Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001068/0.001068, allocations: 181.4 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.302/1.302, allocations: 205.4 MB / 223.1 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008067/0.0008067, allocations: 103.7 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002475/0.0002475, allocations: 7.984 kB / 328.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2256/0.2259, allocations: 47.56 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.124/0.35, allocations: 113.4 MB / 489.3 MB, free: 15.23 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002594/0.3503, allocations: 87.95 kB / 489.4 MB, free: 15.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5097/0.8599, allocations: 159.3 MB / 0.6335 GB, free: 13.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.737e-06/0.86, allocations: 3.938 kB / 0.6335 GB, free: 13.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006777/0.8607, allocations: 167.8 kB / 0.6337 GB, free: 12.9 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.02222/0.8829, allocations: 7.007 MB / 0.6405 GB, free: 5.805 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.883, allocations: 8.031 kB / 0.6405 GB, free: 5.797 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003962/0.887, allocations: 0.9626 MB / 0.6415 GB, free: 4.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009059/0.896, allocations: 1.517 MB / 0.6429 GB, free: 3.293 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3918/1.288, allocations: 5.771 MB / 0.6486 GB, free: 35.95 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004366/1.288, allocations: 0.5138 MB / 0.6491 GB, free: 35.94 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002266/1.291, allocations: 0.6841 MB / 0.6497 GB, free: 35.94 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01978/1.31, allocations: 9.219 MB / 0.6587 GB, free: 35.21 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001547/1.311, allocations: 6.094 kB / 0.6587 GB, free: 35.21 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007719/1.311, allocations: 295.1 kB / 0.659 GB, free: 35.21 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002974/1.312, allocations: 317.4 kB / 0.6593 GB, free: 35.2 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01814/1.33, allocations: 7.577 MB / 0.6667 GB, free: 35.13 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05069/1.381, allocations: 28.88 MB / 0.6949 GB, free: 30.39 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01189/1.393, allocations: 16.6 MB / 0.7111 GB, free: 16.19 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01171/1.404, allocations: 6.635 MB / 0.7176 GB, free: 12.73 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.977e-05/1.404, allocations: 67.67 kB / 0.7177 GB, free: 12.66 MB / 410.8 MB Notification: Performance of pre-optimization done (n=281): time 5.089e-06/1.404, allocations: 0 / 0.7177 GB, free: 12.66 MB / 410.8 MB Notification: Performance of matching and sorting (n=289): time 0.02204/1.426, allocations: 12.01 MB / 0.7294 GB, free: 7.141 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.694e-05/1.426, allocations: 82.38 kB / 0.7295 GB, free: 7.074 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004126/1.431, allocations: 2.933 MB / 0.7324 GB, free: 5.961 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003201/1.431, allocations: 72.95 kB / 0.7324 GB, free: 5.895 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001468/1.432, allocations: 2.988 MB / 0.7354 GB, free: 3.637 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006184/1.433, allocations: 0.986 MB / 0.7363 GB, free: 2.867 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/1.433, allocations: 78.41 kB / 0.7364 GB, free: 2.809 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.0001399/1.433, allocations: 440.1 kB / 0.7368 GB, free: 2.445 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002014/1.435, allocations: 1.475 MB / 0.7382 GB, free: 1.875 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00226/1.438, allocations: 2.452 MB / 0.7406 GB, free: 116 kB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00427/1.442, allocations: 2.072 MB / 0.7427 GB, free: 15.86 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.631e-05/1.442, allocations: 11.59 kB / 0.7427 GB, free: 15.86 MB / 426.8 MB Notification: Performance of matching and sorting (n=450) (initialization): time 0.007148/1.449, allocations: 4.884 MB / 0.7474 GB, free: 13.91 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.476e-05/1.449, allocations: 19.12 kB / 0.7475 GB, free: 13.91 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.097e-05/1.449, allocations: 30.94 kB / 0.7475 GB, free: 13.91 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009234/1.45, allocations: 434 kB / 0.7479 GB, free: 13.76 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003066/1.453, allocations: 0.8378 MB / 0.7487 GB, free: 13.73 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006161/1.459, allocations: 7.715 MB / 0.7563 GB, free: 7.25 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003303/1.463, allocations: 170.8 kB / 0.7564 GB, free: 7.188 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000504/1.463, allocations: 152.2 kB / 0.7566 GB, free: 7.16 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 136 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (422): * Single equations (assignments): 416 * 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: 4 * 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: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003889/1.467, allocations: 2.087 MB / 0.7586 GB, free: 6.102 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008665/1.468, allocations: 368.5 kB / 0.759 GB, free: 5.914 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007098/1.475, allocations: 4.53 MB / 0.7634 GB, free: 3.852 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-05/1.475, allocations: 29.5 kB / 0.7634 GB, free: 3.852 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.547e-05/1.475, allocations: 16.88 kB / 0.7634 GB, free: 3.848 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.302e-05/1.475, allocations: 17.31 kB / 0.7634 GB, free: 3.844 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0223/1.498, allocations: 11.1 MB / 0.7743 GB, free: 15.05 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.535e-05/1.498, allocations: 4 kB / 0.7743 GB, free: 15.05 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00221/1.5, allocations: 458 kB / 0.7747 GB, free: 14.7 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002145/1.502, allocations: 0.8607 MB / 0.7756 GB, free: 13.99 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003428/1.502, allocations: 79.83 kB / 0.7756 GB, free: 13.92 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01557/1.518, allocations: 16.31 MB / 0.7916 GB, free: 13.88 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.926e-06/1.518, allocations: 9.875 kB / 0.7916 GB, free: 13.87 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01066/1.529, allocations: 6.85 MB / 0.7983 GB, free: 7.41 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002543/1.531, allocations: 0.7799 MB / 0.799 GB, free: 6.691 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005957/1.532, allocations: 67.95 kB / 0.7991 GB, free: 6.625 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001698/1.534, allocations: 154 kB / 0.7992 GB, free: 6.504 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004917/1.534, allocations: 216.5 kB / 0.7995 GB, free: 6.367 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001726/1.534, allocations: 87.41 kB / 0.7995 GB, free: 6.289 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.00342/1.538, allocations: 2.229 MB / 0.8017 GB, free: 4.426 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.81e-07/1.538, allocations: 0 / 0.8017 GB, free: 4.426 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.003953/1.542, allocations: 1.21 MB / 0.8029 GB, free: 3.227 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (221): * Single equations (assignments): 214 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(4,93.8%) 33,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 12,(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.01022/1.552, allocations: 8.827 MB / 0.8115 GB, free: 10.94 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.007146/1.559, allocations: 4.33 MB / 0.8157 GB, free: 6.938 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/1.559, allocations: 4 kB / 0.8157 GB, free: 6.934 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005222/1.564, allocations: 2.986 MB / 0.8187 GB, free: 4.148 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005612/1.57, allocations: 0.9345 MB / 0.8196 GB, free: 3.426 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2848/1.855, allocations: 56.1 MB / 0.8744 GB, free: 59.03 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005259/1.86, allocations: 4.352 MB / 0.8786 GB, free: 58.21 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.003691/1.864, allocations: 0.8536 MB / 0.8794 GB, free: 58.17 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00401/1.868, allocations: 2.551 MB / 0.8819 GB, free: 58.17 MB / 474.8 MB Notification: Performance of SimCode: time 1.122e-06/1.868, allocations: 0.8125 kB / 0.8819 GB, free: 58.17 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1332/2.001, allocations: 100.6 MB / 0.9801 GB, free: 14 MB / 474.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001598/2.001, allocations: 235.2 kB / 0.9804 GB, free: 13.76 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.845/6.846, allocations: 0 / 0.9804 GB, free: 13.76 MB / 474.8 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat