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.SMPM_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.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_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.001258/0.001258, allocations: 175.5 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.368/1.368, allocations: 221.3 MB / 235.5 MB, free: 2.969 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.0009634/0.0009634, allocations: 92.67 kB / 286.5 MB, free: 244 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.128e-05/3.13e-05, allocations: 4 kB / 344 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1131, allocations: 50.41 MB / 394.4 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3901/0.5032, allocations: 119.5 MB / 0.5019 GB, free: 15.87 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003102/0.5036, allocations: 99.94 kB / 0.502 GB, free: 15.77 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6464/1.15, allocations: 169.8 MB / 0.6678 GB, free: 35.12 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.254e-06/1.15, allocations: 0 / 0.6678 GB, free: 35.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0006622/1.151, allocations: 179.8 kB / 0.6679 GB, free: 34.95 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02245/1.173, allocations: 6.71 MB / 0.6745 GB, free: 28.15 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/1.173, allocations: 12.03 kB / 0.6745 GB, free: 28.14 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004116/1.177, allocations: 0.9841 MB / 0.6755 GB, free: 27.14 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01067/1.188, allocations: 1.603 MB / 0.677 GB, free: 25.53 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01939/1.207, allocations: 5.952 MB / 0.6828 GB, free: 19.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007612/1.208, allocations: 0.53 MB / 0.6834 GB, free: 18.97 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003938/1.212, allocations: 0.7068 MB / 0.684 GB, free: 18.26 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0293/1.242, allocations: 9.362 MB / 0.6932 GB, free: 8.68 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004464/1.242, allocations: 11.91 kB / 0.6932 GB, free: 8.668 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00275/1.245, allocations: 304 kB / 0.6935 GB, free: 8.371 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003378/1.245, allocations: 350.5 kB / 0.6938 GB, free: 8.027 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02061/1.266, allocations: 7.548 MB / 0.7012 GB, free: 484 kB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6205/1.886, allocations: 30.62 MB / 0.7311 GB, free: 44.47 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01651/1.903, allocations: 16.02 MB / 0.7467 GB, free: 32.6 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006886/1.91, allocations: 3.062 MB / 0.7497 GB, free: 32.54 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01911/1.929, allocations: 8.244 MB / 0.7578 GB, free: 31.62 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.658e-05/1.929, allocations: 74.66 kB / 0.7579 GB, free: 31.58 MB / 442.8 MB Notification: Performance of pre-optimization done (n=286): time 6.131e-06/1.929, allocations: 0 / 0.7579 GB, free: 31.58 MB / 442.8 MB Notification: Performance of matching and sorting (n=294): time 0.01628/1.945, allocations: 8.455 MB / 0.7661 GB, free: 29.84 MB / 442.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.494e-05/1.946, allocations: 83.48 kB / 0.7662 GB, free: 29.77 MB / 442.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005873/1.951, allocations: 3.186 MB / 0.7693 GB, free: 29.52 MB / 442.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007746/1.952, allocations: 74.3 kB / 0.7694 GB, free: 29.49 MB / 442.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002181/1.954, allocations: 3.188 MB / 0.7725 GB, free: 28.2 MB / 442.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001319/1.956, allocations: 1.004 MB / 0.7735 GB, free: 27.56 MB / 442.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002519/1.956, allocations: 78.38 kB / 0.7735 GB, free: 27.56 MB / 442.8 MB Notification: Performance of setup shared object (initialization): time 0.0001892/1.956, allocations: 449.7 kB / 0.774 GB, free: 27.25 MB / 442.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002104/1.958, allocations: 1.418 MB / 0.7754 GB, free: 27.25 MB / 442.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002512/1.961, allocations: 2.519 MB / 0.7778 GB, free: 25.96 MB / 442.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002878/1.964, allocations: 1.905 MB / 0.7797 GB, free: 25.91 MB / 442.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.609e-05/1.964, allocations: 10.94 kB / 0.7797 GB, free: 25.91 MB / 442.8 MB Notification: Performance of matching and sorting (n=477) (initialization): time 0.007486/1.971, allocations: 4.884 MB / 0.7845 GB, free: 25.43 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.08e-05/1.971, allocations: 22.31 kB / 0.7845 GB, free: 25.43 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-05/1.971, allocations: 34.56 kB / 0.7845 GB, free: 25.43 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008598/1.972, allocations: 402.6 kB / 0.7849 GB, free: 25.38 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003237/1.976, allocations: 0.8749 MB / 0.7858 GB, free: 25.38 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005016/1.981, allocations: 7.331 MB / 0.7929 GB, free: 20.19 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003894/1.984, allocations: 183 kB / 0.7931 GB, free: 20.18 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008177/1.985, allocations: 160.8 kB / 0.7932 GB, free: 20.18 MB / 442.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 158 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (452): * Single equations (assignments): 446 * 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.0007384/1.986, allocations: 338.2 kB / 0.7936 GB, free: 20.05 MB / 442.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001034/1.987, allocations: 406.2 kB / 0.7939 GB, free: 19.84 MB / 442.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007393/1.995, allocations: 4.4 MB / 0.7982 GB, free: 19.37 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.608e-05/1.995, allocations: 30.72 kB / 0.7983 GB, free: 19.37 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.915e-05/1.995, allocations: 18.5 kB / 0.7983 GB, free: 19.37 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.927e-05/1.995, allocations: 14.44 kB / 0.7983 GB, free: 19.37 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01858/2.013, allocations: 10.42 MB / 0.8085 GB, free: 15.11 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.369e-05/2.013, allocations: 6.594 kB / 0.8085 GB, free: 15.11 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001903/2.015, allocations: 458.1 kB / 0.8089 GB, free: 15.09 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00199/2.017, allocations: 0.8758 MB / 0.8098 GB, free: 14.81 MB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002728/2.017, allocations: 77.41 kB / 0.8099 GB, free: 14.77 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01374/2.031, allocations: 16.29 MB / 0.8258 GB, free: 17.89 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/2.031, allocations: 11.73 kB / 0.8258 GB, free: 17.88 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01073/2.042, allocations: 6.711 MB / 0.8323 GB, free: 14.39 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002924/2.045, allocations: 0.8199 MB / 0.8331 GB, free: 13.84 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001139/2.046, allocations: 61.56 kB / 0.8332 GB, free: 13.8 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002542/2.049, allocations: 159.4 kB / 0.8333 GB, free: 13.76 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006619/2.049, allocations: 223.8 kB / 0.8336 GB, free: 13.72 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002109/2.05, allocations: 83.8 kB / 0.8336 GB, free: 13.7 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.004671/2.054, allocations: 2.407 MB / 0.836 GB, free: 12.76 MB / 458.8 MB Notification: Performance of sort global known variables: time 8.81e-07/2.054, allocations: 0 / 0.836 GB, free: 12.76 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.007402/2.062, allocations: 1.282 MB / 0.8372 GB, free: 12.63 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (222): * Single equations (assignments): 215 * 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%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01341/2.075, allocations: 8.796 MB / 0.8458 GB, free: 7.531 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.007583/2.083, allocations: 4.235 MB / 0.85 GB, free: 5.578 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/2.083, allocations: 5.562 kB / 0.85 GB, free: 5.578 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.005714/2.089, allocations: 2.927 MB / 0.8528 GB, free: 3.051 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006654/2.095, allocations: 1.027 MB / 0.8538 GB, free: 2.258 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03152/2.127, allocations: 12.06 MB / 0.8656 GB, free: 7.66 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007106/2.134, allocations: 4.469 MB / 0.87 GB, free: 4.312 MB / 474.8 MB Notification: Performance of simCode: alias equations: time 0.004673/2.139, allocations: 0.8931 MB / 0.8708 GB, free: 3.695 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005979/2.145, allocations: 2.747 MB / 0.8735 GB, free: 1.145 MB / 474.8 MB Notification: Performance of SimCode: time 1.973e-06/2.145, allocations: 0 / 0.8735 GB, free: 1.145 MB / 474.8 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4997/2.644, allocations: 109.6 MB / 0.9806 GB, free: 86.81 MB / 490.8 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002109/2.645, allocations: 249.2 kB / 0.9808 GB, free: 86.48 MB / 490.8 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.838/8.482, allocations: 6.844 kB / 0.9808 GB, free: 86.48 MB / 490.8 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_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.SMPM_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat