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.SMEE_Generator_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.SMEE_Generator_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_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.001115/0.001115, allocations: 180.4 kB / 16.38 MB, free: 5.762 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.316/1.316, allocations: 223.2 MB / 240.3 MB, free: 11.85 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009082/0.0009082, allocations: 96.2 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002506/0.0002506, allocations: 8 kB / 351.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2243, allocations: 50.41 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4015/0.6259, allocations: 125.6 MB / 0.5148 GB, free: 52.12 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003017/0.6262, allocations: 105.6 kB / 0.5149 GB, free: 52.12 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6895/1.316, allocations: 194 MB / 0.7044 GB, free: 55.35 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.805e-06/1.316, allocations: 0 / 0.7044 GB, free: 55.35 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0006617/1.316, allocations: 203.7 kB / 0.7046 GB, free: 55.34 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.03075/1.347, allocations: 8.762 MB / 0.7132 GB, free: 52.25 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.033e-05/1.347, allocations: 7.469 kB / 0.7132 GB, free: 52.25 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005045/1.352, allocations: 1.178 MB / 0.7143 GB, free: 52.16 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01322/1.366, allocations: 1.922 MB / 0.7162 GB, free: 51.66 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02004/1.386, allocations: 7.089 MB / 0.7231 GB, free: 50.64 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007336/1.386, allocations: 0.6415 MB / 0.7237 GB, free: 50.62 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003521/1.39, allocations: 0.8433 MB / 0.7246 GB, free: 50.61 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02977/1.42, allocations: 11.16 MB / 0.7355 GB, free: 49.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003339/1.42, allocations: 14.11 kB / 0.7355 GB, free: 49.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002348/1.423, allocations: 366.8 kB / 0.7358 GB, free: 49.7 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003396/1.423, allocations: 372 kB / 0.7362 GB, free: 49.68 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02223/1.445, allocations: 9.115 MB / 0.7451 GB, free: 49.59 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06454/1.51, allocations: 35.91 MB / 0.7801 GB, free: 31.77 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01459/1.524, allocations: 17.05 MB / 0.7968 GB, free: 16.84 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02061/1.545, allocations: 9.448 MB / 0.806 GB, free: 10.95 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.57e-05/1.545, allocations: 65.14 kB / 0.8061 GB, free: 10.88 MB / 458.7 MB Notification: Performance of pre-optimization done (n=330): time 6.242e-06/1.545, allocations: 0 / 0.8061 GB, free: 10.88 MB / 458.7 MB Notification: Performance of matching and sorting (n=384): time 0.04243/1.588, allocations: 16.6 MB / 0.8223 GB, free: 12.06 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.883e-05/1.588, allocations: 98.34 kB / 0.8224 GB, free: 11.95 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007648/1.595, allocations: 3.847 MB / 0.8261 GB, free: 8.676 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007124/1.596, allocations: 89.7 kB / 0.8262 GB, free: 8.582 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003262/1.599, allocations: 3.827 MB / 0.83 GB, free: 5.176 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001739/1.601, allocations: 1.298 MB / 0.8312 GB, free: 4.008 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000363/1.602, allocations: 96 kB / 0.8313 GB, free: 3.914 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000309/1.602, allocations: 495.6 kB / 0.8318 GB, free: 3.477 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003702/1.606, allocations: 1.99 MB / 0.8337 GB, free: 1.758 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2621/1.868, allocations: 3.384 MB / 0.837 GB, free: 65.42 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005412/1.873, allocations: 2.586 MB / 0.8396 GB, free: 65.38 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.829e-05/1.873, allocations: 14.75 kB / 0.8396 GB, free: 65.38 MB / 474.7 MB Notification: Performance of matching and sorting (n=600) (initialization): time 0.01392/1.887, allocations: 6.716 MB / 0.8461 GB, free: 65.11 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.641e-05/1.887, allocations: 23.41 kB / 0.8462 GB, free: 65.11 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001192/1.887, allocations: 48.34 kB / 0.8462 GB, free: 65.11 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00204/1.889, allocations: 0.7605 MB / 0.847 GB, free: 65.06 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004519/1.894, allocations: 1.088 MB / 0.848 GB, free: 65.06 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009577/1.904, allocations: 10.55 MB / 0.8583 GB, free: 59.77 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004874/1.909, allocations: 255.8 kB / 0.8586 GB, free: 59.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008074/1.909, allocations: 209 kB / 0.8588 GB, free: 59.77 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 201 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (544): * Single equations (assignments): 536 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(3,77.8%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005394/1.915, allocations: 2.533 MB / 0.8612 GB, free: 59.66 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001129/1.916, allocations: 492.6 kB / 0.8617 GB, free: 59.66 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009746/1.926, allocations: 5.756 MB / 0.8673 GB, free: 59.21 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-05/1.926, allocations: 37.12 kB / 0.8674 GB, free: 59.21 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.879e-05/1.926, allocations: 19.02 kB / 0.8674 GB, free: 59.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.86e-05/1.926, allocations: 20.77 kB / 0.8674 GB, free: 59.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02532/1.951, allocations: 13.88 MB / 0.881 GB, free: 58.07 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.241e-05/1.951, allocations: 6.594 kB / 0.881 GB, free: 58.07 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003066/1.954, allocations: 0.6625 MB / 0.8816 GB, free: 58.07 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002285/1.957, allocations: 0.8957 MB / 0.8825 GB, free: 58.03 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005952/1.957, allocations: 90.89 kB / 0.8826 GB, free: 58.03 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01312/1.97, allocations: 14.31 MB / 0.8965 GB, free: 51.39 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/1.97, allocations: 9.156 kB / 0.8966 GB, free: 51.39 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01552/1.986, allocations: 9.182 MB / 0.9055 GB, free: 47.52 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003202/1.989, allocations: 0.9922 MB / 0.9065 GB, free: 46.87 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001509/1.991, allocations: 82.5 kB / 0.9066 GB, free: 46.81 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003661/1.994, allocations: 215.8 kB / 0.9068 GB, free: 46.77 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007967/1.995, allocations: 294.9 kB / 0.9071 GB, free: 46.72 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003785/1.996, allocations: 111.4 kB / 0.9072 GB, free: 46.7 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005911/2.002, allocations: 2.921 MB / 0.91 GB, free: 45.6 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.3e-07/2.002, allocations: 0 / 0.91 GB, free: 45.6 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008304/2.01, allocations: 1.567 MB / 0.9115 GB, free: 45.44 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.stray.Phi.re,smee3.stator.stray.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (306): * Single equations (assignments): 299 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01709/2.027, allocations: 11.36 MB / 0.9226 GB, free: 38.93 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01076/2.038, allocations: 5.883 MB / 0.9284 GB, free: 36.41 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-05/2.038, allocations: 10.36 kB / 0.9284 GB, free: 36.41 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006601/2.044, allocations: 3.592 MB / 0.9319 GB, free: 34.64 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006241/2.051, allocations: 1.059 MB / 0.9329 GB, free: 34.34 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3623/2.413, allocations: 78.19 MB / 1.009 GB, free: 94.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008954/2.422, allocations: 5.238 MB / 1.014 GB, free: 93.32 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.004944/2.427, allocations: 1.083 MB / 1.015 GB, free: 93.27 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00509/2.432, allocations: 3.268 MB / 1.019 GB, free: 93.27 MB / 0.4948 GB Notification: Performance of SimCode: time 8.61e-07/2.432, allocations: 0 / 1.019 GB, free: 93.27 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2103/2.642, allocations: 125.8 MB / 1.142 GB, free: 45.11 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000246/2.643, allocations: 281.8 kB / 1.142 GB, free: 44.75 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.829/8.472, allocations: 7.938 kB / 1.142 GB, free: 44.75 MB / 0.4948 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMEE_Generator_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_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.SMEE_Generator_Polyphase_res.mat does not exist to compare? outputFormat=mat