Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_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.000992/0.0009921, allocations: 178.4 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.483/1.483, allocations: 205.3 MB / 214.4 MB, free: 1.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008842/0.0008841, allocations: 82.7 kB / 262.4 MB, free: 1.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.7e-05/1.688e-05, allocations: 4 kB / 315.6 MB, free: 22.6 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1018, allocations: 47.58 MB / 363.2 MB, free: 6.957 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4002/0.5021, allocations: 116.7 MB / 479.9 MB, free: 11.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003084/0.5025, allocations: 87.11 kB / 480 MB, free: 11.31 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6175/1.12, allocations: 167.2 MB / 0.632 GB, free: 52.68 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.036e-06/1.12, allocations: 0 / 0.632 GB, free: 52.68 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006205/1.121, allocations: 171.8 kB / 0.6321 GB, free: 52.52 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02006/1.141, allocations: 6.68 MB / 0.6387 GB, free: 45.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.013e-05/1.141, allocations: 12.03 kB / 0.6387 GB, free: 45.75 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009365/1.15, allocations: 1.602 MB / 0.6402 GB, free: 44.14 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01408/1.164, allocations: 5.939 MB / 0.646 GB, free: 38.22 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004191/1.165, allocations: 240 kB / 0.6463 GB, free: 37.99 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002622/1.167, allocations: 432.2 kB / 0.6467 GB, free: 37.57 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01664/1.184, allocations: 7.129 MB / 0.6536 GB, free: 30.43 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02504/1.209, allocations: 8.306 MB / 0.6617 GB, free: 21.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003599/1.21, allocations: 11.84 kB / 0.6618 GB, free: 21.89 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002469/1.212, allocations: 4 kB / 0.6618 GB, free: 21.89 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002915/1.212, allocations: 342.6 kB / 0.6621 GB, free: 21.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.34/1.552, allocations: 29.23 MB / 0.6906 GB, free: 48.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01507/1.567, allocations: 15.87 MB / 0.7061 GB, free: 36.55 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005447/1.573, allocations: 2.913 MB / 0.709 GB, free: 36.49 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01678/1.59, allocations: 7.96 MB / 0.7168 GB, free: 35.56 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.603e-05/1.59, allocations: 64.81 kB / 0.7168 GB, free: 35.52 MB / 410.7 MB Notification: Performance of pre-optimization done (n=286): time 5.511e-06/1.59, allocations: 0 / 0.7168 GB, free: 35.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=294): time 0.01762/1.608, allocations: 8.802 MB / 0.7254 GB, free: 33.92 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.163e-05/1.608, allocations: 83.53 kB / 0.7255 GB, free: 33.86 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004461/1.612, allocations: 2.526 MB / 0.728 GB, free: 33.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005017/1.613, allocations: 25.7 kB / 0.728 GB, free: 33.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001662/1.614, allocations: 3.204 MB / 0.7311 GB, free: 32.16 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000932/1.615, allocations: 0.9702 MB / 0.7321 GB, free: 31.52 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/1.615, allocations: 0 / 0.7321 GB, free: 31.52 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001753/1.616, allocations: 452.3 kB / 0.7325 GB, free: 31.21 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001851/1.617, allocations: 1.334 MB / 0.7338 GB, free: 31.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002173/1.62, allocations: 2.438 MB / 0.7362 GB, free: 29.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003306/1.623, allocations: 2.127 MB / 0.7382 GB, free: 29.86 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-05/1.623, allocations: 11.12 kB / 0.7383 GB, free: 29.86 MB / 410.7 MB Notification: Performance of matching and sorting (n=479) (initialization): time 0.008081/1.631, allocations: 4.762 MB / 0.7429 GB, free: 29.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.417e-05/1.631, allocations: 23.67 kB / 0.7429 GB, free: 29.4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.787e-05/1.631, allocations: 36.09 kB / 0.743 GB, free: 29.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008547/1.632, allocations: 389.1 kB / 0.7433 GB, free: 29.35 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003307/1.635, allocations: 0.8763 MB / 0.7442 GB, free: 29.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004912/1.64, allocations: 7.041 MB / 0.7511 GB, free: 24.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003868/1.644, allocations: 109.6 kB / 0.7512 GB, free: 24.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006146/1.645, allocations: 162.3 kB / 0.7513 GB, free: 24.39 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 160 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (454): * Single equations (assignments): 448 * 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%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006724/1.646, allocations: 220.4 kB / 0.7515 GB, free: 24.26 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0071/1.653, allocations: 4.048 MB / 0.7555 GB, free: 22.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001033/1.654, allocations: 361.6 kB / 0.7558 GB, free: 22.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007722/1.662, allocations: 4.378 MB / 0.7601 GB, free: 20.78 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.352e-05/1.662, allocations: 32.83 kB / 0.7601 GB, free: 20.78 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.968e-05/1.662, allocations: 16.09 kB / 0.7602 GB, free: 20.78 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.004e-05/1.662, allocations: 14.2 kB / 0.7602 GB, free: 20.78 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01848/1.68, allocations: 9.516 MB / 0.7695 GB, free: 16.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-05/1.68, allocations: 9.328 kB / 0.7695 GB, free: 16.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002019/1.682, allocations: 457.8 kB / 0.7699 GB, free: 16.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002109/1.684, allocations: 0.8582 MB / 0.7707 GB, free: 16.34 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002638/1.685, allocations: 34.48 kB / 0.7708 GB, free: 16.33 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01317/1.698, allocations: 15.67 MB / 0.7861 GB, free: 4.027 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.019e-05/1.698, allocations: 6.75 kB / 0.7861 GB, free: 4.027 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01049/1.708, allocations: 6.735 MB / 0.7927 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002683/1.711, allocations: 0.7704 MB / 0.7934 GB, free: 0 / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001162/1.712, allocations: 16.61 kB / 0.7934 GB, free: 0 / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002139/1.714, allocations: 112.3 kB / 0.7935 GB, free: 0 / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006056/1.715, allocations: 236.2 kB / 0.7938 GB, free: 15.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001789/1.715, allocations: 89 kB / 0.7939 GB, free: 15.96 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003354/1.719, allocations: 1.865 MB / 0.7957 GB, free: 15.18 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.719, allocations: 0 / 0.7957 GB, free: 15.18 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005765/1.724, allocations: 1.116 MB / 0.7968 GB, free: 15.16 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (223): * Single equations (assignments): 216 * 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 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01383/1.738, allocations: 8.738 MB / 0.8053 GB, free: 7.949 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006752/1.745, allocations: 3.986 MB / 0.8092 GB, free: 4.238 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/1.745, allocations: 0 / 0.8092 GB, free: 4.238 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004647/1.75, allocations: 2.801 MB / 0.8119 GB, free: 1.629 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005054/1.755, allocations: 0.7588 MB / 0.8127 GB, free: 1.039 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03166/1.787, allocations: 11.94 MB / 0.8243 GB, free: 7.273 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005112/1.792, allocations: 4.473 MB / 0.8287 GB, free: 3.93 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003798/1.796, allocations: 0.839 MB / 0.8295 GB, free: 3.352 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004569/1.8, allocations: 2.665 MB / 0.8321 GB, free: 0.8828 MB / 442.7 MB Notification: Performance of SimCode: time 9.92e-07/1.8, allocations: 0 / 0.8321 GB, free: 0.8828 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4703/2.27, allocations: 92.02 MB / 0.922 GB, free: 83.99 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000175/2.271, allocations: 175.6 kB / 0.9221 GB, free: 83.8 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.704/6.975, allocations: 4 kB / 0.9222 GB, free: 83.8 MB / 458.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter_MultiPhase.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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.SMPM_Inverter_MultiPhase_res.mat does not exist to compare? outputFormat=mat