Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",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.001906/0.001906, 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.405/1.405, allocations: 221.3 MB / 235.5 MB, free: 2.949 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.0009095/0.0009095, allocations: 95.97 kB / 286.5 MB, free: 244 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.08e-05/4.105e-05, allocations: 4 kB / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1047, allocations: 50.4 MB / 394.4 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3973/0.502, allocations: 137.3 MB / 0.5192 GB, free: 13.96 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000294/0.5024, allocations: 94.67 kB / 0.5193 GB, free: 13.88 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5262/1.029, allocations: 131.6 MB / 0.6478 GB, free: 57.94 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.525e-06/1.029, allocations: 0 / 0.6478 GB, free: 57.94 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005311/1.029, allocations: 139.9 kB / 0.6479 GB, free: 57.8 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.01681/1.046, allocations: 5.436 MB / 0.6532 GB, free: 52.3 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/1.046, allocations: 16.03 kB / 0.6533 GB, free: 52.28 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002726/1.049, allocations: 0.7661 MB / 0.654 GB, free: 51.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006802/1.056, allocations: 1.152 MB / 0.6551 GB, free: 50.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01233/1.068, allocations: 4.907 MB / 0.6599 GB, free: 45.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003939/1.068, allocations: 427.4 kB / 0.6603 GB, free: 44.95 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002227/1.071, allocations: 0.5546 MB / 0.6609 GB, free: 44.39 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01254/1.083, allocations: 7.049 MB / 0.6678 GB, free: 37.16 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001303/1.083, allocations: 11.91 kB / 0.6678 GB, free: 37.15 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005236/1.084, allocations: 240 kB / 0.668 GB, free: 36.91 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001774/1.084, allocations: 251.3 kB / 0.6682 GB, free: 36.67 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009929/1.094, allocations: 5.605 MB / 0.6737 GB, free: 31.06 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04077/1.135, allocations: 23.91 MB / 0.6971 GB, free: 6.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007439/1.142, allocations: 8.655 MB / 0.7055 GB, free: 12.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004307/1.147, allocations: 2.239 MB / 0.7077 GB, free: 10.65 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01646/1.163, allocations: 6.947 MB / 0.7145 GB, free: 3.492 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.22e-05/1.163, allocations: 56.56 kB / 0.7145 GB, free: 3.426 MB / 442.7 MB Notification: Performance of pre-optimization done (n=237): time 5.009e-06/1.163, allocations: 7.938 kB / 0.7145 GB, free: 3.418 MB / 442.7 MB Notification: Performance of matching and sorting (n=288): time 0.3387/1.502, allocations: 12.12 MB / 0.7264 GB, free: 75.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.251e-05/1.502, allocations: 80.33 kB / 0.7265 GB, free: 75.47 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006269/1.508, allocations: 2.938 MB / 0.7293 GB, free: 75.21 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005867/1.509, allocations: 75.27 kB / 0.7294 GB, free: 75.18 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001947/1.511, allocations: 2.677 MB / 0.732 GB, free: 74.27 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001208/1.512, allocations: 0.981 MB / 0.733 GB, free: 73.64 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002252/1.512, allocations: 76.47 kB / 0.733 GB, free: 73.64 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002047/1.513, allocations: 451.9 kB / 0.7335 GB, free: 73.34 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002596/1.515, allocations: 1.471 MB / 0.7349 GB, free: 73.33 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003057/1.518, allocations: 2.652 MB / 0.7375 GB, free: 71.95 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00313/1.521, allocations: 1.948 MB / 0.7394 GB, free: 71.89 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.818e-05/1.521, allocations: 14.48 kB / 0.7394 GB, free: 71.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=474) (initialization): time 0.009954/1.531, allocations: 5.405 MB / 0.7447 GB, free: 71.41 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.389e-05/1.532, allocations: 21.94 kB / 0.7447 GB, free: 71.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.392e-05/1.532, allocations: 42.8 kB / 0.7448 GB, free: 71.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002028/1.534, allocations: 0.8648 MB / 0.7456 GB, free: 71.37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003213/1.537, allocations: 0.8576 MB / 0.7464 GB, free: 71.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01092/1.548, allocations: 9.776 MB / 0.756 GB, free: 67.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004806/1.553, allocations: 241.6 kB / 0.7562 GB, free: 67.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008823/1.554, allocations: 170.3 kB / 0.7564 GB, free: 67.28 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (421): * Single equations (assignments): 412 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008004/1.554, allocations: 339.1 kB / 0.7567 GB, free: 67.15 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001234/1.556, allocations: 389.7 kB / 0.7571 GB, free: 66.95 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008009/1.564, allocations: 4.548 MB / 0.7615 GB, free: 66.51 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.16e-05/1.564, allocations: 28.12 kB / 0.7615 GB, free: 66.51 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.768e-05/1.564, allocations: 10.47 kB / 0.7616 GB, free: 66.51 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-05/1.564, allocations: 18.62 kB / 0.7616 GB, free: 66.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01755/1.581, allocations: 9.978 MB / 0.7713 GB, free: 64.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.005505/1.587, allocations: 3.826 MB / 0.7751 GB, free: 62.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002081/1.589, allocations: 499 kB / 0.7755 GB, free: 62.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002343/1.591, allocations: 0.9811 MB / 0.7765 GB, free: 62.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002923/1.592, allocations: 78.64 kB / 0.7766 GB, free: 62.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01302/1.605, allocations: 14.78 MB / 0.791 GB, free: 51.29 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/1.605, allocations: 8.844 kB / 0.791 GB, free: 51.29 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01111/1.616, allocations: 7.146 MB / 0.798 GB, free: 47.55 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002705/1.619, allocations: 0.7812 MB / 0.7987 GB, free: 47.04 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001039/1.62, allocations: 63.33 kB / 0.7988 GB, free: 47 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002309/1.622, allocations: 188.2 kB / 0.799 GB, free: 46.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005051/1.623, allocations: 214.8 kB / 0.7992 GB, free: 46.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002009/1.623, allocations: 87.05 kB / 0.7993 GB, free: 46.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00366/1.626, allocations: 2.209 MB / 0.8014 GB, free: 46.06 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.21e-07/1.626, allocations: 0 / 0.8014 GB, free: 46.06 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006718/1.633, allocations: 1.209 MB / 0.8026 GB, free: 45.93 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (227): * Single equations (assignments): 218 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,75.0%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01513/1.648, allocations: 9.034 MB / 0.8114 GB, free: 40.79 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01086/1.659, allocations: 4.668 MB / 0.816 GB, free: 36.78 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-05/1.659, allocations: 320 / 0.816 GB, free: 36.78 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006654/1.666, allocations: 2.979 MB / 0.8189 GB, free: 33.96 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007213/1.673, allocations: 0.8259 MB / 0.8197 GB, free: 33.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03082/1.704, allocations: 9.984 MB / 0.8295 GB, free: 24.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003004/1.707, allocations: 3.627 MB / 0.833 GB, free: 21.77 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003283/1.71, allocations: 0.8383 MB / 0.8338 GB, free: 21.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002596/1.713, allocations: 2.229 MB / 0.836 GB, free: 19.13 MB / 442.7 MB Notification: Performance of SimCode: time 1.322e-06/1.713, allocations: 0 / 0.836 GB, free: 19.13 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5493/2.262, allocations: 98.07 MB / 0.9318 GB, free: 90.31 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002143/2.263, allocations: 226.3 kB / 0.932 GB, free: 90.09 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.688/7.95, allocations: 0 / 0.932 GB, free: 90.09 MB / 474.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat