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.0009551/0.0009551, allocations: 180.9 kB / 16.38 MB, free: 5.766 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.291/1.291, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.001017/0.001016, allocations: 106.5 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002575/0.0002579, allocations: 8 kB / 351.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2695/0.2697, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3455/0.6153, allocations: 137.4 MB / 0.5264 GB, free: 54.07 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.6156, allocations: 97.25 kB / 0.5265 GB, free: 54.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3126/0.9282, allocations: 131.5 MB / 0.6549 GB, free: 11.17 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.268e-06/0.9282, allocations: 0 / 0.6549 GB, free: 11.17 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.001028/0.9293, allocations: 139.9 kB / 0.655 GB, free: 11.03 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.03111/0.9604, allocations: 6.071 MB / 0.661 GB, free: 4.879 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.13e-05/0.9605, allocations: 12.03 kB / 0.661 GB, free: 4.867 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003925/0.9644, allocations: 0.7739 MB / 0.6617 GB, free: 4.082 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01133/0.9758, allocations: 1.156 MB / 0.6628 GB, free: 2.918 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2536/1.229, allocations: 4.945 MB / 0.6677 GB, free: 49.05 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006784/1.23, allocations: 427.8 kB / 0.6681 GB, free: 49.04 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00262/1.233, allocations: 0.5536 MB / 0.6686 GB, free: 49.04 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01627/1.249, allocations: 7.214 MB / 0.6757 GB, free: 48.39 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001525/1.249, allocations: 7.344 kB / 0.6757 GB, free: 48.39 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006119/1.25, allocations: 243.6 kB / 0.6759 GB, free: 48.39 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003096/1.25, allocations: 247.4 kB / 0.6761 GB, free: 48.38 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.013/1.263, allocations: 5.86 MB / 0.6819 GB, free: 48.33 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04591/1.309, allocations: 23.85 MB / 0.7052 GB, free: 43.52 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00768/1.317, allocations: 8.795 MB / 0.7137 GB, free: 37.73 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01272/1.33, allocations: 6.792 MB / 0.7204 GB, free: 36.46 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.778e-05/1.33, allocations: 63.41 kB / 0.7204 GB, free: 36.41 MB / 442.7 MB Notification: Performance of pre-optimization done (n=253): time 4.268e-06/1.33, allocations: 0 / 0.7204 GB, free: 36.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=305): time 0.03709/1.367, allocations: 16.53 MB / 0.7366 GB, free: 31.37 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/1.367, allocations: 87.44 kB / 0.7367 GB, free: 31.3 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004368/1.371, allocations: 2.966 MB / 0.7396 GB, free: 30.21 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004112/1.372, allocations: 72.48 kB / 0.7396 GB, free: 30.14 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001427/1.373, allocations: 2.649 MB / 0.7422 GB, free: 28.11 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008135/1.374, allocations: 1.034 MB / 0.7432 GB, free: 27.31 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001829/1.374, allocations: 81.56 kB / 0.7433 GB, free: 27.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001662/1.374, allocations: 450.7 kB / 0.7437 GB, free: 26.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002392/1.377, allocations: 1.656 MB / 0.7454 GB, free: 26.29 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002976/1.38, allocations: 2.813 MB / 0.7481 GB, free: 24.25 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003078/1.383, allocations: 2.123 MB / 0.7502 GB, free: 23.37 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.729e-05/1.383, allocations: 10.38 kB / 0.7502 GB, free: 23.37 MB / 442.7 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.009612/1.393, allocations: 5.769 MB / 0.7558 GB, free: 21.21 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.064e-05/1.393, allocations: 28.17 kB / 0.7558 GB, free: 21.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.83e-05/1.393, allocations: 44.41 kB / 0.7559 GB, free: 21.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001964/1.395, allocations: 0.8657 MB / 0.7567 GB, free: 20.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003625/1.398, allocations: 0.8908 MB / 0.7576 GB, free: 20.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009925/1.408, allocations: 10.05 MB / 0.7674 GB, free: 14.17 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004214/1.412, allocations: 244.7 kB / 0.7676 GB, free: 14.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006591/1.413, allocations: 169.5 kB / 0.7678 GB, free: 14.06 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 167 * 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 (434): * Single equations (assignments): 425 * 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.003794/1.417, allocations: 1.629 MB / 0.7694 GB, free: 13.22 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/1.418, allocations: 395.3 kB / 0.7698 GB, free: 13.02 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007875/1.426, allocations: 4.939 MB / 0.7746 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.079e-05/1.426, allocations: 31.56 kB / 0.7746 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.061e-05/1.426, allocations: 6.688 kB / 0.7746 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-05/1.426, allocations: 16.12 kB / 0.7747 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01799/1.444, allocations: 10.64 MB / 0.785 GB, free: 6.328 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.005877/1.45, allocations: 4.172 MB / 0.7891 GB, free: 3.094 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002172/1.452, allocations: 0.5249 MB / 0.7896 GB, free: 2.684 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002241/1.454, allocations: 0.9804 MB / 0.7906 GB, free: 1.906 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002571/1.455, allocations: 82.44 kB / 0.7907 GB, free: 1.836 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01586/1.471, allocations: 15.15 MB / 0.8055 GB, free: 3.105 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/1.471, allocations: 11.94 kB / 0.8055 GB, free: 3.094 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0119/1.482, allocations: 7.839 MB / 0.8131 GB, free: 11.74 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002452/1.485, allocations: 0.7972 MB / 0.8139 GB, free: 11 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007093/1.486, allocations: 63.28 kB / 0.814 GB, free: 10.95 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002059/1.488, allocations: 203.8 kB / 0.8142 GB, free: 10.79 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004597/1.488, allocations: 222.2 kB / 0.8144 GB, free: 10.65 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001938/1.488, allocations: 91.17 kB / 0.8145 GB, free: 10.57 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003491/1.492, allocations: 2.244 MB / 0.8166 GB, free: 8.699 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.6e-07/1.492, allocations: 0 / 0.8166 GB, free: 8.699 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004762/1.497, allocations: 1.221 MB / 0.8178 GB, free: 7.496 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (244): * Single equations (assignments): 235 * 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.01849/1.515, allocations: 10.3 MB / 0.8279 GB, free: 15.62 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008852/1.524, allocations: 5.042 MB / 0.8328 GB, free: 11 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.778e-06/1.524, allocations: 3.562 kB / 0.8328 GB, free: 11 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005236/1.529, allocations: 3.212 MB / 0.836 GB, free: 8.047 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004087/1.534, allocations: 0.8433 MB / 0.8368 GB, free: 7.379 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3112/1.845, allocations: 60.55 MB / 0.8959 GB, free: 51.94 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00403/1.849, allocations: 3.634 MB / 0.8995 GB, free: 51.11 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004106/1.853, allocations: 0.85 MB / 0.9003 GB, free: 51.07 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003429/1.856, allocations: 2.242 MB / 0.9025 GB, free: 51.07 MB / 490.7 MB Notification: Performance of SimCode: time 1.192e-06/1.856, allocations: 1.969 kB / 0.9025 GB, free: 51.07 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1426/1.999, allocations: 98.12 MB / 0.9983 GB, free: 20.87 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001779/1.999, allocations: 241.6 kB / 0.9985 GB, free: 20.54 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.345/7.344, allocations: 3.609 kB / 0.9985 GB, free: 20.54 MB / 490.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