Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_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.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.002628/0.002628, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.497/1.497, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0011/0.0011, allocations: 81.86 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.544e-05/3.556e-05, allocations: 0 / 350.7 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1052/0.1052, allocations: 51.49 MB / 402.2 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3979/0.5032, allocations: 120.7 MB / 0.5106 GB, free: 1.484 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003278/0.5036, allocations: 109.6 kB / 0.5107 GB, free: 1.426 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6403/1.144, allocations: 175.7 MB / 0.6822 GB, free: 54.62 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.144, allocations: 4 kB / 0.6822 GB, free: 54.62 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0007539/1.145, allocations: 178.9 kB / 0.6824 GB, free: 54.59 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02137/1.166, allocations: 6.753 MB / 0.689 GB, free: 50.36 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.038e-05/1.166, allocations: 7.531 kB / 0.689 GB, free: 50.36 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003561/1.17, allocations: 0.9915 MB / 0.69 GB, free: 49.62 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009906/1.18, allocations: 1.601 MB / 0.6915 GB, free: 48.13 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01552/1.195, allocations: 6.007 MB / 0.6974 GB, free: 42.05 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005458/1.196, allocations: 0.5338 MB / 0.6979 GB, free: 41.51 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002919/1.199, allocations: 0.7146 MB / 0.6986 GB, free: 40.8 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02438/1.223, allocations: 9.35 MB / 0.7077 GB, free: 31.22 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002912/1.223, allocations: 7.906 kB / 0.7077 GB, free: 31.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001916/1.225, allocations: 308 kB / 0.708 GB, free: 30.91 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002855/1.226, allocations: 342.6 kB / 0.7084 GB, free: 30.58 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01789/1.244, allocations: 7.551 MB / 0.7157 GB, free: 23.02 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3545/1.598, allocations: 30.96 MB / 0.746 GB, free: 41.45 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01365/1.612, allocations: 17.18 MB / 0.7628 GB, free: 28.36 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00801/1.62, allocations: 4.33 MB / 0.767 GB, free: 28.3 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01783/1.638, allocations: 9.511 MB / 0.7763 GB, free: 26.83 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.843e-05/1.638, allocations: 64.91 kB / 0.7763 GB, free: 26.79 MB / 442.7 MB Notification: Performance of pre-optimization done (n=286): time 6.382e-06/1.638, allocations: 0 / 0.7763 GB, free: 26.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=294): time 0.01656/1.654, allocations: 8.877 MB / 0.785 GB, free: 25.08 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/1.655, allocations: 85.19 kB / 0.7851 GB, free: 25.01 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006104/1.661, allocations: 3.215 MB / 0.7882 GB, free: 24.7 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005533/1.661, allocations: 75.33 kB / 0.7883 GB, free: 24.67 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001935/1.663, allocations: 3.187 MB / 0.7914 GB, free: 23.32 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009688/1.664, allocations: 1.007 MB / 0.7924 GB, free: 22.68 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002048/1.664, allocations: 72.69 kB / 0.7925 GB, free: 22.68 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001599/1.665, allocations: 456.5 kB / 0.7929 GB, free: 22.37 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002237/1.667, allocations: 1.47 MB / 0.7943 GB, free: 22.36 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002881/1.67, allocations: 2.578 MB / 0.7968 GB, free: 21.07 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003144/1.673, allocations: 1.96 MB / 0.7988 GB, free: 21.02 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-05/1.673, allocations: 13.2 kB / 0.7988 GB, free: 21.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=477) (initialization): time 0.009556/1.682, allocations: 5.188 MB / 0.8038 GB, free: 20.52 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.037e-05/1.683, allocations: 19.47 kB / 0.8039 GB, free: 20.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.897e-05/1.683, allocations: 34.97 kB / 0.8039 GB, free: 20.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001359/1.684, allocations: 0.5659 MB / 0.8044 GB, free: 20.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003338/1.687, allocations: 0.8663 MB / 0.8053 GB, free: 20.47 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007425/1.695, allocations: 8.658 MB / 0.8137 GB, free: 31.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00398/1.699, allocations: 187.2 kB / 0.8139 GB, free: 31.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005821/1.699, allocations: 166.2 kB / 0.8141 GB, free: 31.23 MB / 458.7 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 (447): * Single equations (assignments): 441 * 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,(3,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007752/1.7, allocations: 330.7 kB / 0.8144 GB, free: 31.11 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009047/1.701, allocations: 408.8 kB / 0.8148 GB, free: 30.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008851/1.71, allocations: 4.713 MB / 0.8194 GB, free: 30.3 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-05/1.71, allocations: 29.77 kB / 0.8194 GB, free: 30.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-05/1.71, allocations: 14.41 kB / 0.8194 GB, free: 30.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.301e-05/1.71, allocations: 15.61 kB / 0.8194 GB, free: 30.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02116/1.731, allocations: 10.91 MB / 0.8301 GB, free: 25.58 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.317e-05/1.731, allocations: 3.844 kB / 0.8301 GB, free: 25.58 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002031/1.733, allocations: 454 kB / 0.8305 GB, free: 25.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002596/1.736, allocations: 1.055 MB / 0.8316 GB, free: 25.23 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004153/1.736, allocations: 75.59 kB / 0.8316 GB, free: 25.19 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01781/1.754, allocations: 17.53 MB / 0.8488 GB, free: 11.74 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/1.754, allocations: 13.03 kB / 0.8488 GB, free: 11.74 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0104/1.765, allocations: 7.122 MB / 0.8557 GB, free: 7.992 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002715/1.768, allocations: 0.8335 MB / 0.8565 GB, free: 7.438 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001191/1.769, allocations: 63.03 kB / 0.8566 GB, free: 7.395 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00254/1.771, allocations: 161.1 kB / 0.8567 GB, free: 7.352 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005203/1.772, allocations: 216.1 kB / 0.857 GB, free: 7.312 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002023/1.772, allocations: 88.33 kB / 0.857 GB, free: 7.293 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004097/1.776, allocations: 2.427 MB / 0.8594 GB, free: 6.309 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.776, allocations: 0 / 0.8594 GB, free: 6.309 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006129/1.782, allocations: 1.307 MB / 0.8607 GB, free: 6.172 MB / 458.7 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 (219): * Single equations (assignments): 212 * 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%) 14,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01289/1.795, allocations: 9.203 MB / 0.8697 GB, free: 0.9141 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008517/1.804, allocations: 4.467 MB / 0.874 GB, free: 15.14 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/1.804, allocations: 0 / 0.874 GB, free: 15.14 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005502/1.809, allocations: 3.024 MB / 0.877 GB, free: 13.42 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006765/1.816, allocations: 1.047 MB / 0.878 GB, free: 12.76 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03332/1.85, allocations: 12.19 MB / 0.8899 GB, free: 2.051 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01422/1.864, allocations: 5.032 MB / 0.8948 GB, free: 15.96 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004223/1.868, allocations: 0.892 MB / 0.8957 GB, free: 15.35 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004764/1.873, allocations: 2.757 MB / 0.8984 GB, free: 12.79 MB / 490.7 MB Notification: Performance of SimCode: time 9.01e-07/1.873, allocations: 0 / 0.8984 GB, free: 12.79 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4829/2.356, allocations: 111.4 MB / 1.007 GB, free: 78.36 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002402/2.356, allocations: 255.9 kB / 1.007 GB, free: 78.02 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.66/8.016, allocations: 4 kB / 1.007 GB, free: 78.02 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase.fmu > Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat does not exist to compare? outputFormat=mat