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.001523/0.001523, allocations: 178.4 kB / 8.697 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.501/1.501, allocations: 205.3 MB / 214.4 MB, free: 1.672 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.0009257/0.0009257, allocations: 90.36 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.677e-05/2.703e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09207/0.09212, allocations: 47.58 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.36/0.4522, allocations: 112.9 MB / 476 MB, free: 15.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002301/0.4524, allocations: 86.27 kB / 476.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5409/0.9934, allocations: 157.4 MB / 0.6186 GB, free: 65.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.9934, allocations: 0 / 0.6186 GB, free: 65.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005676/0.994, allocations: 171.8 kB / 0.6188 GB, free: 65.69 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.01983/1.014, allocations: 6.424 MB / 0.6251 GB, free: 59.19 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/1.014, allocations: 12.03 kB / 0.6251 GB, free: 59.18 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009474/1.023, allocations: 1.525 MB / 0.6266 GB, free: 57.65 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01306/1.037, allocations: 5.729 MB / 0.6322 GB, free: 51.93 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002424/1.037, allocations: 228 kB / 0.6324 GB, free: 51.71 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001485/1.038, allocations: 427.7 kB / 0.6328 GB, free: 51.29 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01326/1.052, allocations: 6.905 MB / 0.6395 GB, free: 44.38 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0193/1.071, allocations: 8.027 MB / 0.6474 GB, free: 36.14 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001947/1.071, allocations: 7.906 kB / 0.6474 GB, free: 36.14 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009646/1.072, allocations: 7.953 kB / 0.6474 GB, free: 36.13 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000228/1.072, allocations: 322.2 kB / 0.6477 GB, free: 35.81 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04897/1.121, allocations: 27.53 MB / 0.6746 GB, free: 7.91 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5543/1.676, allocations: 16.27 MB / 0.6905 GB, free: 47.43 MB / 410.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006782/1.683, allocations: 2.737 MB / 0.6931 GB, free: 47.38 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01761/1.7, allocations: 7.512 MB / 0.7005 GB, free: 46.46 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.913e-05/1.7, allocations: 70.62 kB / 0.7005 GB, free: 46.41 MB / 410.8 MB Notification: Performance of pre-optimization done (n=256): time 5.14e-06/1.7, allocations: 4.031 kB / 0.7005 GB, free: 46.41 MB / 410.8 MB Notification: Performance of matching and sorting (n=262): time 0.01784/1.718, allocations: 8.091 MB / 0.7084 GB, free: 45.03 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.667e-05/1.718, allocations: 79.03 kB / 0.7085 GB, free: 44.96 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005052/1.723, allocations: 2.353 MB / 0.7108 GB, free: 44.73 MB / 410.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0003997/1.724, allocations: 31.14 kB / 0.7108 GB, free: 44.7 MB / 410.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001944/1.726, allocations: 3.049 MB / 0.7138 GB, free: 43.29 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007612/1.726, allocations: 0.8717 MB / 0.7147 GB, free: 42.71 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002919/1.727, allocations: 0 / 0.7147 GB, free: 42.71 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 0.000169/1.727, allocations: 439.9 kB / 0.7151 GB, free: 42.4 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001594/1.729, allocations: 1.238 MB / 0.7163 GB, free: 42.39 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002047/1.731, allocations: 2.239 MB / 0.7185 GB, free: 41.21 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003159/1.734, allocations: 1.928 MB / 0.7204 GB, free: 41.16 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.07e-05/1.734, allocations: 10.66 kB / 0.7204 GB, free: 41.16 MB / 410.8 MB Notification: Performance of matching and sorting (n=433) (initialization): time 0.007456/1.741, allocations: 4.379 MB / 0.7247 GB, free: 40.72 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.286e-05/1.741, allocations: 22.36 kB / 0.7247 GB, free: 40.72 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.857e-05/1.741, allocations: 30.94 kB / 0.7247 GB, free: 40.72 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/1.742, allocations: 380.4 kB / 0.7251 GB, free: 40.67 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003106/1.746, allocations: 0.7986 MB / 0.7259 GB, free: 40.67 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005554/1.751, allocations: 7.027 MB / 0.7327 GB, free: 35.73 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004188/1.755, allocations: 100.3 kB / 0.7328 GB, free: 35.72 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006836/1.756, allocations: 149.1 kB / 0.733 GB, free: 35.72 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (408): * Single equations (assignments): 402 * 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.000657/1.757, allocations: 210.1 kB / 0.7332 GB, free: 35.59 MB / 410.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007419/1.764, allocations: 3.739 MB / 0.7368 GB, free: 35.02 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001199/1.766, allocations: 329.2 kB / 0.7371 GB, free: 34.85 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007515/1.773, allocations: 4.048 MB / 0.7411 GB, free: 34.38 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.399e-05/1.773, allocations: 23.78 kB / 0.7411 GB, free: 34.38 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.88e-05/1.773, allocations: 12.91 kB / 0.7411 GB, free: 34.38 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.036e-05/1.773, allocations: 15.09 kB / 0.7411 GB, free: 34.38 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0172/1.79, allocations: 8.803 MB / 0.7497 GB, free: 31.45 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.426e-05/1.79, allocations: 5.906 kB / 0.7497 GB, free: 31.45 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001831/1.792, allocations: 407.2 kB / 0.7501 GB, free: 31.44 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00204/1.794, allocations: 0.8349 MB / 0.7509 GB, free: 31.17 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001814/1.795, allocations: 38.58 kB / 0.751 GB, free: 31.16 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01399/1.809, allocations: 15.4 MB / 0.766 GB, free: 19 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.178e-05/1.809, allocations: 11.39 kB / 0.766 GB, free: 19 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009458/1.818, allocations: 6.091 MB / 0.772 GB, free: 15.84 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002177/1.82, allocations: 0.6951 MB / 0.7726 GB, free: 15.38 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000637/1.821, allocations: 21.22 kB / 0.7727 GB, free: 15.37 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001925/1.823, allocations: 109.8 kB / 0.7728 GB, free: 15.36 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000582/1.823, allocations: 196.6 kB / 0.773 GB, free: 15.33 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001849/1.824, allocations: 83.41 kB / 0.773 GB, free: 15.31 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.003442/1.827, allocations: 1.743 MB / 0.7747 GB, free: 14.58 MB / 410.8 MB Notification: Performance of sort global known variables: time 6.62e-07/1.827, allocations: 0 / 0.7747 GB, free: 14.58 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.006186/1.833, allocations: 1.051 MB / 0.7758 GB, free: 14.55 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (195): * Single equations (assignments): 188 * 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%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01054/1.844, allocations: 7.823 MB / 0.7834 GB, free: 10.02 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.005459/1.849, allocations: 3.715 MB / 0.787 GB, free: 8.25 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 9.388e-06/1.849, allocations: 2.531 kB / 0.787 GB, free: 8.25 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003588/1.853, allocations: 2.635 MB / 0.7896 GB, free: 6.254 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004722/1.858, allocations: 0.6591 MB / 0.7902 GB, free: 5.738 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03323/1.891, allocations: 11.47 MB / 0.8014 GB, free: 12.11 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007834/1.899, allocations: 4.343 MB / 0.8057 GB, free: 8.859 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.004434/1.903, allocations: 0.7807 MB / 0.8064 GB, free: 8.324 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00517/1.909, allocations: 2.519 MB / 0.8089 GB, free: 5.988 MB / 426.8 MB Notification: Performance of SimCode: time 1.162e-06/1.909, allocations: 0 / 0.8089 GB, free: 5.988 MB / 426.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4878/2.396, allocations: 84.5 MB / 0.8914 GB, free: 91.37 MB / 458.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000142/2.397, allocations: 179.7 kB / 0.8916 GB, free: 91.18 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.835/7.231, allocations: 0 / 0.8916 GB, free: 91.18 MB / 458.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