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.001415/0.001415, allocations: 177.1 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.000988/0.0009878, allocations: 90.2 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.7e-05/2.702e-05, allocations: 11.92 kB / 337.2 MB, free: 9.898 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1065, allocations: 50.42 MB / 387.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4094/0.5159, allocations: 115 MB / 0.4908 GB, free: 11.64 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003508/0.5163, allocations: 99.92 kB / 0.4909 GB, free: 11.54 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.615/1.131, allocations: 157.9 MB / 0.6451 GB, free: 60.97 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.204e-06/1.131, allocations: 0 / 0.6451 GB, free: 60.97 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006094/1.132, allocations: 167.2 kB / 0.6452 GB, free: 60.81 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.02069/1.153, allocations: 6.45 MB / 0.6515 GB, free: 54.29 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.485e-05/1.153, allocations: 15.98 kB / 0.6515 GB, free: 54.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01046/1.163, allocations: 1.521 MB / 0.653 GB, free: 52.74 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01419/1.178, allocations: 5.735 MB / 0.6586 GB, free: 47.02 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004425/1.178, allocations: 228 kB / 0.6588 GB, free: 46.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002601/1.181, allocations: 419.7 kB / 0.6592 GB, free: 46.39 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01607/1.197, allocations: 6.913 MB / 0.666 GB, free: 39.47 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02687/1.224, allocations: 8.008 MB / 0.6738 GB, free: 31.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002942/1.224, allocations: 11.94 kB / 0.6738 GB, free: 31.24 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002327/1.226, allocations: 4 kB / 0.6738 GB, free: 31.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003102/1.227, allocations: 322.2 kB / 0.6741 GB, free: 30.92 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05262/1.279, allocations: 27.5 MB / 0.701 GB, free: 3.051 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.016/1.295, allocations: 16.29 MB / 0.7169 GB, free: 0.875 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2943/1.59, allocations: 2.768 MB / 0.7196 GB, free: 76.73 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0177/1.607, allocations: 7.57 MB / 0.727 GB, free: 75.81 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.007e-05/1.607, allocations: 62.28 kB / 0.7271 GB, free: 75.77 MB / 442.7 MB Notification: Performance of pre-optimization done (n=258): time 6.072e-06/1.607, allocations: 3.969 kB / 0.7271 GB, free: 75.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=264): time 0.01895/1.626, allocations: 8.138 MB / 0.735 GB, free: 74.39 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/1.627, allocations: 82.7 kB / 0.7351 GB, free: 74.32 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007516/1.634, allocations: 2.353 MB / 0.7374 GB, free: 74.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006848/1.635, allocations: 26.73 kB / 0.7374 GB, free: 74.05 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003201/1.638, allocations: 3.045 MB / 0.7404 GB, free: 72.69 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001686/1.64, allocations: 0.8722 MB / 0.7412 GB, free: 72.11 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005892/1.64, allocations: 0 / 0.7412 GB, free: 72.11 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003643/1.641, allocations: 442.7 kB / 0.7417 GB, free: 71.8 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002686/1.643, allocations: 1.248 MB / 0.7429 GB, free: 71.79 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002789/1.646, allocations: 2.236 MB / 0.7451 GB, free: 70.62 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00401/1.65, allocations: 1.944 MB / 0.747 GB, free: 70.58 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.645e-05/1.65, allocations: 11.72 kB / 0.747 GB, free: 70.58 MB / 442.7 MB Notification: Performance of matching and sorting (n=433) (initialization): time 0.009828/1.66, allocations: 4.389 MB / 0.7513 GB, free: 70.13 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.703e-05/1.66, allocations: 15.38 kB / 0.7513 GB, free: 70.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.348e-05/1.66, allocations: 35.38 kB / 0.7513 GB, free: 70.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001068/1.661, allocations: 379.5 kB / 0.7517 GB, free: 70.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003298/1.665, allocations: 0.7897 MB / 0.7524 GB, free: 70.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005229/1.67, allocations: 7.038 MB / 0.7593 GB, free: 65.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003481/1.674, allocations: 102.3 kB / 0.7594 GB, free: 65.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006432/1.674, allocations: 146.5 kB / 0.7595 GB, free: 65.14 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 (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.0008284/1.675, allocations: 205.2 kB / 0.7597 GB, free: 65.01 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007083/1.682, allocations: 3.778 MB / 0.7634 GB, free: 64.43 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009802/1.683, allocations: 329.7 kB / 0.7637 GB, free: 64.27 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007527/1.691, allocations: 4.077 MB / 0.7677 GB, free: 63.79 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.972e-05/1.691, allocations: 25.69 kB / 0.7678 GB, free: 63.79 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-05/1.691, allocations: 13.34 kB / 0.7678 GB, free: 63.79 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.662e-05/1.691, allocations: 14.06 kB / 0.7678 GB, free: 63.79 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02067/1.711, allocations: 8.823 MB / 0.7764 GB, free: 61.97 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.165e-05/1.712, allocations: 2.938 kB / 0.7764 GB, free: 61.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001784/1.713, allocations: 411.6 kB / 0.7768 GB, free: 61.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001977/1.715, allocations: 0.8355 MB / 0.7776 GB, free: 61.68 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001934/1.716, allocations: 37.72 kB / 0.7776 GB, free: 61.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01283/1.728, allocations: 15.44 MB / 0.7927 GB, free: 49.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/1.728, allocations: 4.781 kB / 0.7927 GB, free: 49.5 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009885/1.738, allocations: 6.082 MB / 0.7987 GB, free: 46.42 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002046/1.74, allocations: 0.6992 MB / 0.7993 GB, free: 45.95 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006334/1.741, allocations: 14.64 kB / 0.7994 GB, free: 45.95 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001776/1.743, allocations: 107.8 kB / 0.7995 GB, free: 45.95 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004424/1.743, allocations: 200.8 kB / 0.7997 GB, free: 45.92 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002035/1.744, allocations: 80.8 kB / 0.7997 GB, free: 45.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003552/1.747, allocations: 1.74 MB / 0.8014 GB, free: 45.16 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.01e-07/1.747, allocations: 0 / 0.8014 GB, free: 45.16 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005634/1.753, allocations: 1.047 MB / 0.8025 GB, free: 45.14 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 (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.01004/1.763, allocations: 7.693 MB / 0.81 GB, free: 40.82 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005187/1.768, allocations: 3.735 MB / 0.8136 GB, free: 39.04 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/1.768, allocations: 4.062 kB / 0.8136 GB, free: 39.04 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0034/1.771, allocations: 2.644 MB / 0.8162 GB, free: 37.51 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004163/1.776, allocations: 0.6566 MB / 0.8168 GB, free: 37.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02378/1.799, allocations: 11.29 MB / 0.8279 GB, free: 28.2 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003655/1.803, allocations: 4.337 MB / 0.8321 GB, free: 24.95 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003308/1.806, allocations: 0.7859 MB / 0.8329 GB, free: 24.42 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003483/1.81, allocations: 2.522 MB / 0.8353 GB, free: 22.07 MB / 442.7 MB Notification: Performance of SimCode: time 2.144e-06/1.81, allocations: 0 / 0.8353 GB, free: 22.07 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4085/2.218, allocations: 84.52 MB / 0.9179 GB, free: 75.15 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002079/2.219, allocations: 229.8 kB / 0.9181 GB, free: 74.86 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.602/6.821, allocations: 0 / 0.9181 GB, free: 74.86 MB / 458.7 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