Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 175.4 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 221.3 MB / 235.5 MB, free: 2.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009355/0.0009355, allocations: 105.8 kB / 286.5 MB, free: 216 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.469e-05/3.486e-05, allocations: 0 / 344 MB, free: 4.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09933/0.09939, allocations: 50.43 MB / 394.4 MB, free: 1.719 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3787/0.4782, allocations: 115.6 MB / 0.4981 GB, free: 3.715 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004227/0.4787, allocations: 103.9 kB / 0.4982 GB, free: 3.613 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6338/1.112, allocations: 159.9 MB / 0.6543 GB, free: 49.03 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.154e-06/1.113, allocations: 4 kB / 0.6543 GB, free: 49.02 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007644/1.113, allocations: 167.8 kB / 0.6545 GB, free: 48.86 MB / 426.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.02075/1.134, allocations: 6.462 MB / 0.6608 GB, free: 42.31 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/1.134, allocations: 12.03 kB / 0.6608 GB, free: 42.3 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003644/1.138, allocations: 0.9509 MB / 0.6617 GB, free: 41.34 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009025/1.147, allocations: 1.513 MB / 0.6632 GB, free: 39.81 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01435/1.161, allocations: 5.735 MB / 0.6688 GB, free: 34 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004605/1.162, allocations: 0.5176 MB / 0.6693 GB, free: 33.48 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002732/1.164, allocations: 0.6834 MB / 0.67 GB, free: 32.8 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02348/1.188, allocations: 9.031 MB / 0.6788 GB, free: 23.55 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000259/1.188, allocations: 11.91 kB / 0.6788 GB, free: 23.54 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00202/1.19, allocations: 295.9 kB / 0.6791 GB, free: 23.25 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002861/1.191, allocations: 326.2 kB / 0.6794 GB, free: 22.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0182/1.209, allocations: 7.323 MB / 0.6866 GB, free: 15.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05893/1.268, allocations: 28.85 MB / 0.7147 GB, free: 2.121 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.5667/1.835, allocations: 16.42 MB / 0.7308 GB, free: 53.38 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005377/1.84, allocations: 2.891 MB / 0.7336 GB, free: 53.32 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01811/1.858, allocations: 7.764 MB / 0.7412 GB, free: 52.41 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.277e-05/1.858, allocations: 61.52 kB / 0.7412 GB, free: 52.37 MB / 442.8 MB Notification: Performance of pre-optimization done (n=256): time 5.28e-06/1.858, allocations: 0.875 kB / 0.7412 GB, free: 52.37 MB / 442.8 MB Notification: Performance of matching and sorting (n=262): time 0.0172/1.875, allocations: 7.813 MB / 0.7489 GB, free: 50.93 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.872e-05/1.876, allocations: 82.48 kB / 0.7489 GB, free: 50.86 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006525/1.882, allocations: 2.908 MB / 0.7518 GB, free: 50.61 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006389/1.883, allocations: 72.72 kB / 0.7518 GB, free: 50.58 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003049/1.886, allocations: 3.041 MB / 0.7548 GB, free: 49.31 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00127/1.887, allocations: 0.9031 MB / 0.7557 GB, free: 48.74 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002014/1.887, allocations: 63.91 kB / 0.7558 GB, free: 48.74 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0002228/1.888, allocations: 438.6 kB / 0.7562 GB, free: 48.43 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00205/1.89, allocations: 1.311 MB / 0.7575 GB, free: 48.42 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002505/1.892, allocations: 2.318 MB / 0.7597 GB, free: 47.25 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002732/1.895, allocations: 1.76 MB / 0.7614 GB, free: 47.2 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.835e-05/1.895, allocations: 7.875 kB / 0.7614 GB, free: 47.2 MB / 442.8 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.007365/1.902, allocations: 4.518 MB / 0.7659 GB, free: 46.73 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.483e-05/1.902, allocations: 19.88 kB / 0.7659 GB, free: 46.73 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.851e-05/1.902, allocations: 31.59 kB / 0.7659 GB, free: 46.73 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009719/1.903, allocations: 402.7 kB / 0.7663 GB, free: 46.68 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002878/1.906, allocations: 0.7811 MB / 0.7671 GB, free: 46.68 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005723/1.912, allocations: 7.331 MB / 0.7742 GB, free: 41.5 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004413/1.917, allocations: 167.4 kB / 0.7744 GB, free: 41.49 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000888/1.917, allocations: 151.1 kB / 0.7745 GB, free: 41.49 MB / 442.8 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 (406): * Single equations (assignments): 400 * 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.001473/1.919, allocations: 317.1 kB / 0.7748 GB, free: 41.36 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001622/1.921, allocations: 362.2 kB / 0.7752 GB, free: 41.18 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00875/1.929, allocations: 4.071 MB / 0.7791 GB, free: 40.71 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-05/1.929, allocations: 25.16 kB / 0.7792 GB, free: 40.71 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.205e-05/1.929, allocations: 14.44 kB / 0.7792 GB, free: 40.71 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.331e-05/1.929, allocations: 14.48 kB / 0.7792 GB, free: 40.71 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02352/1.953, allocations: 9.687 MB / 0.7887 GB, free: 37.53 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.669e-05/1.953, allocations: 3.75 kB / 0.7887 GB, free: 37.53 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002009/1.955, allocations: 408.8 kB / 0.789 GB, free: 37.52 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002439/1.958, allocations: 0.8555 MB / 0.7899 GB, free: 37.25 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000498/1.958, allocations: 65.94 kB / 0.7899 GB, free: 37.21 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0146/1.973, allocations: 16.03 MB / 0.8056 GB, free: 24.47 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/1.973, allocations: 5.719 kB / 0.8056 GB, free: 24.47 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01127/1.984, allocations: 6.079 MB / 0.8115 GB, free: 21.36 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002709/1.987, allocations: 0.7383 MB / 0.8123 GB, free: 20.86 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001496/1.988, allocations: 65.11 kB / 0.8123 GB, free: 20.82 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00297/1.991, allocations: 158.2 kB / 0.8125 GB, free: 20.78 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000628/1.992, allocations: 196.2 kB / 0.8127 GB, free: 20.75 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002698/1.992, allocations: 76.78 kB / 0.8127 GB, free: 20.74 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.00518/1.997, allocations: 2.21 MB / 0.8149 GB, free: 19.87 MB / 442.8 MB Notification: Performance of sort global known variables: time 5.61e-07/1.997, allocations: 0 / 0.8149 GB, free: 19.87 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.006826/2.004, allocations: 1.184 MB / 0.8161 GB, free: 19.75 MB / 442.8 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 (194): * Single equations (assignments): 187 * 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.01265/2.017, allocations: 7.861 MB / 0.8237 GB, free: 15.31 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.00647/2.024, allocations: 3.935 MB / 0.8276 GB, free: 13.46 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 7.834e-06/2.024, allocations: 0 / 0.8276 GB, free: 13.46 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.004221/2.028, allocations: 2.772 MB / 0.8303 GB, free: 11.86 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005942/2.034, allocations: 0.9236 MB / 0.8312 GB, free: 11.61 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03764/2.071, allocations: 11.6 MB / 0.8425 GB, free: 2.285 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01255/2.084, allocations: 4.738 MB / 0.8471 GB, free: 15.96 MB / 458.8 MB Notification: Performance of simCode: alias equations: time 0.005222/2.089, allocations: 0.8277 MB / 0.8479 GB, free: 15.39 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006518/2.096, allocations: 2.53 MB / 0.8504 GB, free: 13.04 MB / 458.8 MB Notification: Performance of SimCode: time 1.332e-06/2.096, allocations: 0 / 0.8504 GB, free: 13.04 MB / 458.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4954/2.591, allocations: 100.3 MB / 0.9484 GB, free: 76.08 MB / 474.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002638/2.592, allocations: 248 kB / 0.9486 GB, free: 75.75 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.359/7.95, allocations: 0 / 0.9486 GB, free: 75.75 MB / 474.8 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase.fmu > Modelica_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat