Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009804/0.0009806, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.41/1.41, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009882/0.0009882, allocations: 95.69 kB / 286.7 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.044e-05/2.996e-05, allocations: 4 kB / 343.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.112, allocations: 51.47 MB / 395.3 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4045/0.5165, allocations: 116.1 MB / 0.4994 GB, free: 9.402 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003037/0.5169, allocations: 94.56 kB / 0.4995 GB, free: 9.352 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6511/1.168, allocations: 163.5 MB / 0.6591 GB, free: 61.68 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.643e-06/1.168, allocations: 0 / 0.6591 GB, free: 61.68 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008175/1.169, allocations: 172.4 kB / 0.6593 GB, free: 61.65 MB / 442.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.02241/1.191, allocations: 6.496 MB / 0.6656 GB, free: 58.68 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/1.191, allocations: 11.56 kB / 0.6657 GB, free: 58.67 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00977/1.201, allocations: 1.515 MB / 0.6671 GB, free: 58.16 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01796/1.219, allocations: 5.793 MB / 0.6728 GB, free: 55.21 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005203/1.22, allocations: 229.5 kB / 0.673 GB, free: 55.21 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003413/1.223, allocations: 418.3 kB / 0.6734 GB, free: 55.2 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01762/1.241, allocations: 6.908 MB / 0.6802 GB, free: 52.14 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02608/1.267, allocations: 8.012 MB / 0.688 GB, free: 48.59 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004324/1.267, allocations: 15.55 kB / 0.688 GB, free: 48.58 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00221/1.27, allocations: 7.656 kB / 0.688 GB, free: 48.57 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003361/1.27, allocations: 323.2 kB / 0.6883 GB, free: 48.54 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05748/1.328, allocations: 27.66 MB / 0.7153 GB, free: 23.6 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01351/1.341, allocations: 17.44 MB / 0.7323 GB, free: 4.102 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007362/1.349, allocations: 3.917 MB / 0.7362 GB, free: 180 kB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3388/1.687, allocations: 8.804 MB / 0.7448 GB, free: 57.32 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.165e-05/1.687, allocations: 58.97 kB / 0.7448 GB, free: 57.27 MB / 442.7 MB Notification: Performance of pre-optimization done (n=258): time 4.098e-06/1.687, allocations: 5.75 kB / 0.7448 GB, free: 57.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=264): time 0.01956/1.707, allocations: 8.992 MB / 0.7536 GB, free: 55.86 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.234e-05/1.707, allocations: 79.27 kB / 0.7537 GB, free: 55.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004403/1.712, allocations: 2.372 MB / 0.756 GB, free: 55.57 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004362/1.712, allocations: 25.7 kB / 0.756 GB, free: 55.54 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001744/1.714, allocations: 3.054 MB / 0.759 GB, free: 54.09 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000904/1.715, allocations: 0.8762 MB / 0.7599 GB, free: 53.52 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001612/1.715, allocations: 0 / 0.7599 GB, free: 53.52 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000172/1.715, allocations: 442.6 kB / 0.7603 GB, free: 53.21 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001892/1.717, allocations: 1.294 MB / 0.7616 GB, free: 53.2 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00242/1.719, allocations: 2.296 MB / 0.7638 GB, free: 52.03 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004203/1.724, allocations: 2.138 MB / 0.7659 GB, free: 51.99 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-05/1.724, allocations: 11.03 kB / 0.7659 GB, free: 51.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=433) (initialization): time 0.009204/1.733, allocations: 4.829 MB / 0.7706 GB, free: 51.53 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.312e-05/1.733, allocations: 18.78 kB / 0.7706 GB, free: 51.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.549e-05/1.733, allocations: 33.72 kB / 0.7707 GB, free: 51.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00124/1.734, allocations: 0.537 MB / 0.7712 GB, free: 51.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003116/1.737, allocations: 0.7797 MB / 0.7719 GB, free: 51.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007661/1.745, allocations: 8.311 MB / 0.7801 GB, free: 46.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003653/1.749, allocations: 93.67 kB / 0.7802 GB, free: 46.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005543/1.749, allocations: 153.8 kB / 0.7803 GB, free: 46.48 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (403): * Single equations (assignments): 397 * 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%) 8,(1,100.0%) 1,(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006531/1.75, allocations: 200.2 kB / 0.7805 GB, free: 46.36 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.009469/1.759, allocations: 4.21 MB / 0.7846 GB, free: 45.78 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001216/1.761, allocations: 332.8 kB / 0.7849 GB, free: 45.61 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01042/1.771, allocations: 4.529 MB / 0.7893 GB, free: 45.13 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.499e-05/1.771, allocations: 26.09 kB / 0.7894 GB, free: 45.13 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.704e-05/1.771, allocations: 13.28 kB / 0.7894 GB, free: 45.13 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.649e-05/1.771, allocations: 16.88 kB / 0.7894 GB, free: 45.13 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02306/1.794, allocations: 9.438 MB / 0.7986 GB, free: 41.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.621e-05/1.794, allocations: 4.109 kB / 0.7986 GB, free: 41.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001919/1.796, allocations: 412.5 kB / 0.799 GB, free: 41.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002574/1.799, allocations: 0.9999 MB / 0.8 GB, free: 41.25 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000377/1.799, allocations: 36.89 kB / 0.8 GB, free: 41.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01462/1.814, allocations: 16.69 MB / 0.8163 GB, free: 28.49 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.015e-06/1.814, allocations: 5.656 kB / 0.8163 GB, free: 28.49 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01103/1.825, allocations: 6.617 MB / 0.8228 GB, free: 25.23 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00229/1.827, allocations: 0.7098 MB / 0.8235 GB, free: 24.76 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009768/1.828, allocations: 20.61 kB / 0.8235 GB, free: 24.75 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002318/1.831, allocations: 106.5 kB / 0.8236 GB, free: 24.74 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000581/1.831, allocations: 201.3 kB / 0.8238 GB, free: 24.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000185/1.832, allocations: 75.98 kB / 0.8239 GB, free: 24.69 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003516/1.835, allocations: 1.752 MB / 0.8256 GB, free: 23.95 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.31e-07/1.835, allocations: 4 kB / 0.8256 GB, free: 23.95 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006205/1.841, allocations: 1.073 MB / 0.8266 GB, free: 23.93 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (192): * Single equations (assignments): 185 * 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%) 8,(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.01204/1.853, allocations: 8.246 MB / 0.8347 GB, free: 19.41 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005842/1.859, allocations: 3.896 MB / 0.8385 GB, free: 17.52 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/1.859, allocations: 0 / 0.8385 GB, free: 17.52 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003869/1.863, allocations: 2.737 MB / 0.8412 GB, free: 15.92 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005506/1.869, allocations: 0.6843 MB / 0.8418 GB, free: 15.74 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0282/1.897, allocations: 11.44 MB / 0.853 GB, free: 11.13 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004531/1.902, allocations: 4.355 MB / 0.8573 GB, free: 9.566 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003207/1.905, allocations: 0.7819 MB / 0.858 GB, free: 9.469 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003747/1.909, allocations: 2.532 MB / 0.8605 GB, free: 7.32 MB / 442.7 MB Notification: Performance of SimCode: time 1.743e-06/1.909, allocations: 0 / 0.8605 GB, free: 7.32 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4593/2.368, allocations: 86.72 MB / 0.9452 GB, free: 72.67 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002174/2.368, allocations: 223.8 kB / 0.9454 GB, free: 72.39 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.775/7.144, allocations: 5.375 kB / 0.9454 GB, free: 72.38 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat