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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00097/0.0009701, allocations: 92.77 kB / 16.95 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 176.2 kB / 17.84 MB, free: 5.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.508/1.508, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004899/0.0004899, allocations: 16 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1104, allocations: 47.57 MB / 328.5 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.0244/0.1349, allocations: 22.3 MB / 350.8 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01598/0.1509, allocations: 6.618 MB / 357.4 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004789/0.1558, allocations: 143.4 kB / 357.5 MB, free: 6.828 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004629/0.1604, allocations: 1.219 MB / 358.7 MB, free: 5.602 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007995/0.1685, allocations: 1.88 MB / 360.6 MB, free: 3.711 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004716/0.1732, allocations: 0.9982 MB / 361.6 MB, free: 2.711 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0142/0.1874, allocations: 8.417 MB / 370 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01068/0.1981, allocations: 5.085 MB / 375.1 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005949/0.2041, allocations: 2.728 MB / 377.8 MB, free: 2.367 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2477/0.4519, allocations: 3.538 MB / 381.4 MB, free: 15.83 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004652/0.4566, allocations: 468.5 kB / 381.8 MB, free: 15.83 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006838/0.4635, allocations: 0.6425 MB / 382.5 MB, free: 15.83 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005817/0.4693, allocations: 1.693 MB / 384.2 MB, free: 15.83 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006177/0.4756, allocations: 1.596 MB / 385.8 MB, free: 15.8 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02152/0.4971, allocations: 12.07 MB / 397.8 MB, free: 11.89 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.4972, allocations: 3.469 kB / 397.8 MB, free: 11.89 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.4972, allocations: 0 / 397.8 MB, free: 11.89 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005745/0.4978, allocations: 0 / 397.8 MB, free: 11.89 MB / 318.1 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.0412/0.539, allocations: 7.821 MB / 405.7 MB, free: 7.801 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.623e-05/0.5391, allocations: 6.312 kB / 405.7 MB, free: 7.801 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00756/0.5467, allocations: 0.9916 MB / 406.7 MB, free: 7.535 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01948/0.5662, allocations: 1.751 MB / 408.4 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01939/0.5857, allocations: 4.493 MB / 412.9 MB, free: 5.422 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001232/0.587, allocations: 0.5459 MB / 413.5 MB, free: 5.402 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005458/0.5925, allocations: 0.7102 MB / 414.2 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04101/0.6336, allocations: 9.735 MB / 423.9 MB, free: 3.094 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007532/0.6344, allocations: 15.55 kB / 423.9 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003869/0.6383, allocations: 297.6 kB / 424.2 MB, free: 3.023 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000469/0.6388, allocations: 353.7 kB / 424.5 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02646/0.6653, allocations: 8.264 MB / 432.8 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08146/0.7468, allocations: 30.63 MB / 463.4 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01819/0.765, allocations: 16.07 MB / 479.5 MB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006677/0.7718, allocations: 3.072 MB / 482.6 MB, free: 7.664 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01997/0.7918, allocations: 8.108 MB / 490.7 MB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.319e-05/0.7919, allocations: 72.7 kB / 490.8 MB, free: 15.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=281): time 5.921e-06/0.792, allocations: 0 / 490.8 MB, free: 15.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=289): time 0.02965/0.8216, allocations: 11.79 MB / 0.4908 GB, free: 3.426 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.684e-05/0.8217, allocations: 81.69 kB / 0.4909 GB, free: 3.332 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01029/0.832, allocations: 3.612 MB / 0.4944 GB, free: 15.74 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008024/0.8329, allocations: 73.7 kB / 0.4945 GB, free: 15.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002966/0.8358, allocations: 3.184 MB / 0.4976 GB, free: 12.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001449/0.8373, allocations: 0.989 MB / 0.4985 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002363/0.8376, allocations: 76 kB / 0.4986 GB, free: 11.4 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002994/0.8379, allocations: 449.9 kB / 0.499 GB, free: 10.96 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002718/0.8406, allocations: 1.483 MB / 0.5005 GB, free: 9.473 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003386/0.844, allocations: 2.631 MB / 0.503 GB, free: 6.363 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003133/0.8471, allocations: 1.959 MB / 0.505 GB, free: 4.418 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.997e-05/0.8472, allocations: 15.56 kB / 0.505 GB, free: 4.406 MB / 414.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.009243/0.8564, allocations: 5.017 MB / 0.5099 GB, free: 15.54 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.089e-05/0.8565, allocations: 20 kB / 0.5099 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.198e-05/0.8566, allocations: 36 kB / 0.5099 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/0.8577, allocations: 412.3 kB / 0.5103 GB, free: 15.06 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003185/0.8609, allocations: 0.8753 MB / 0.5112 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00697/0.8679, allocations: 7.35 MB / 0.5184 GB, free: 6.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004017/0.8719, allocations: 175.7 kB / 0.5185 GB, free: 6.238 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007318/0.8727, allocations: 160 kB / 0.5187 GB, free: 6.082 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 162 * 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 (451): * Single equations (assignments): 445 * 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,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006299/0.879, allocations: 2.148 MB / 0.5208 GB, free: 3.98 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001396/0.8804, allocations: 399.1 kB / 0.5212 GB, free: 3.586 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00947/0.8899, allocations: 4.482 MB / 0.5255 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.823e-05/0.89, allocations: 28 kB / 0.5256 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.364e-05/0.89, allocations: 16 kB / 0.5256 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.431e-05/0.8901, allocations: 15.94 kB / 0.5256 GB, free: 14.98 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02195/0.912, allocations: 10.48 MB / 0.5358 GB, free: 4.426 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-05/0.9121, allocations: 6.406 kB / 0.5358 GB, free: 4.422 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001958/0.9141, allocations: 451 kB / 0.5363 GB, free: 4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00231/0.9164, allocations: 0.8663 MB / 0.5371 GB, free: 3.117 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003571/0.9168, allocations: 75.97 kB / 0.5372 GB, free: 3.043 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2329/1.15, allocations: 16.18 MB / 0.553 GB, free: 146.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/1.15, allocations: 4.094 kB / 0.553 GB, free: 146.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01061/1.16, allocations: 6.444 MB / 0.5593 GB, free: 143.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00207/1.162, allocations: 0.7991 MB / 0.5601 GB, free: 143.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007555/1.163, allocations: 73.36 kB / 0.5601 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001737/1.165, allocations: 152.3 kB / 0.5603 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005028/1.166, allocations: 217.9 kB / 0.5605 GB, free: 142.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001737/1.166, allocations: 88.28 kB / 0.5606 GB, free: 142.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003741/1.169, allocations: 2.437 MB / 0.5629 GB, free: 142 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/1.169, allocations: 1.75 kB / 0.5629 GB, free: 142 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005086/1.175, allocations: 1.215 MB / 0.5641 GB, free: 141.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (220): * Single equations (assignments): 213 * 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%) 13,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009615/1.184, allocations: 7.106 MB / 0.5711 GB, free: 138.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006459/1.191, allocations: 4.361 MB / 0.5753 GB, free: 136.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.147e-06/1.191, allocations: 6.391 kB / 0.5753 GB, free: 136.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004382/1.195, allocations: 3.005 MB / 0.5783 GB, free: 133.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006538/1.202, allocations: 1.069 MB / 0.5793 GB, free: 132.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08782/1.29, allocations: 38.12 MB / 0.6165 GB, free: 94.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006095/1.296, allocations: 4.352 MB / 0.6208 GB, free: 89.97 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00392/1.3, allocations: 0.8942 MB / 0.6217 GB, free: 89.07 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004055/1.304, allocations: 2.733 MB / 0.6243 GB, free: 86.34 MB / 446.1 MB Notification: Performance of SimCode: time 1.753e-06/1.304, allocations: 0 / 0.6243 GB, free: 86.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3684/1.672, allocations: 101.7 MB / 0.7236 GB, free: 138.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001589/1.672, allocations: 239.6 kB / 0.7238 GB, free: 137.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.284/5.956, allocations: 4 kB / 0.7238 GB, free: 137.9 MB / 446.1 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) Environment - environmentSimulation: 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