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_DOL.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_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL",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.001012/0.001012, 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.512/1.512, allocations: 221.3 MB / 235.5 MB, free: 2.898 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.0008821/0.000882, allocations: 98.09 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.74e-05/2.742e-05, allocations: 4 kB / 343.9 MB, free: 4.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1023, allocations: 50.42 MB / 394.4 MB, free: 1.734 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3769/0.4792, allocations: 120.4 MB / 0.5027 GB, free: 15.02 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002853/0.4795, allocations: 93.44 kB / 0.5028 GB, free: 14.93 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.633/1.113, allocations: 160.9 MB / 0.6599 GB, free: 43.64 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.923e-06/1.113, allocations: 0 / 0.6599 GB, free: 43.64 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003274/1.113, allocations: 99.88 kB / 0.66 GB, free: 43.54 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: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01166/1.125, allocations: 3.918 MB / 0.6638 GB, free: 39.55 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/1.125, allocations: 12.03 kB / 0.6638 GB, free: 39.54 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002009/1.127, allocations: 0.5987 MB / 0.6644 GB, free: 38.93 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005683/1.132, allocations: 0.9239 MB / 0.6653 GB, free: 38 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0107/1.143, allocations: 3.806 MB / 0.669 GB, free: 34.13 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002881/1.143, allocations: 312.1 kB / 0.6693 GB, free: 33.82 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00143/1.145, allocations: 399.8 kB / 0.6697 GB, free: 33.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01206/1.157, allocations: 5.016 MB / 0.6746 GB, free: 28.24 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001201/1.157, allocations: 7.938 kB / 0.6746 GB, free: 28.23 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006094/1.158, allocations: 172 kB / 0.6747 GB, free: 28.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001747/1.158, allocations: 180 kB / 0.6749 GB, free: 27.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009527/1.168, allocations: 4.034 MB / 0.6789 GB, free: 23.84 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03152/1.199, allocations: 16.93 MB / 0.6954 GB, free: 6.414 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00658/1.206, allocations: 8.269 MB / 0.7035 GB, free: 13.11 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00314/1.209, allocations: 1.615 MB / 0.705 GB, free: 11.5 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0095/1.218, allocations: 4.852 MB / 0.7098 GB, free: 6.457 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.951e-05/1.219, allocations: 51.88 kB / 0.7098 GB, free: 6.398 MB / 442.7 MB Notification: Performance of pre-optimization done (n=151): time 4.338e-06/1.219, allocations: 3.938 kB / 0.7098 GB, free: 6.395 MB / 442.7 MB Notification: Performance of matching and sorting (n=154): time 0.01015/1.229, allocations: 4.511 MB / 0.7142 GB, free: 1.781 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/1.229, allocations: 68.72 kB / 0.7143 GB, free: 1.703 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2852/1.514, allocations: 1.963 MB / 0.7162 GB, free: 71.32 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003353/1.514, allocations: 51.27 kB / 0.7163 GB, free: 71.29 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001574/1.516, allocations: 1.855 MB / 0.7181 GB, free: 71.11 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006167/1.517, allocations: 0.5268 MB / 0.7186 GB, free: 70.84 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/1.517, allocations: 43.19 kB / 0.7186 GB, free: 70.84 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000139/1.517, allocations: 389.1 kB / 0.719 GB, free: 70.54 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001327/1.518, allocations: 0.7535 MB / 0.7197 GB, free: 70.53 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001688/1.52, allocations: 1.428 MB / 0.7211 GB, free: 69.72 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001758/1.522, allocations: 1.022 MB / 0.7221 GB, free: 69.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.891e-05/1.522, allocations: 6.656 kB / 0.7221 GB, free: 69.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=265) (initialization): time 0.004224/1.526, allocations: 2.665 MB / 0.7247 GB, free: 69.39 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.547e-05/1.526, allocations: 13.72 kB / 0.7248 GB, free: 69.39 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.335e-05/1.526, allocations: 22.84 kB / 0.7248 GB, free: 69.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003227/1.526, allocations: 120.9 kB / 0.7249 GB, free: 69.37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001978/1.528, allocations: 0.5332 MB / 0.7254 GB, free: 69.37 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001577/1.53, allocations: 1.811 MB / 0.7272 GB, free: 68.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002231/1.532, allocations: 118.7 kB / 0.7273 GB, free: 68.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003251/1.533, allocations: 100.6 kB / 0.7274 GB, free: 68.04 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (259): * Single equations (assignments): 257 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004147/1.533, allocations: 234.4 kB / 0.7276 GB, free: 67.94 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006039/1.534, allocations: 243.8 kB / 0.7279 GB, free: 67.81 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004314/1.538, allocations: 2.276 MB / 0.7301 GB, free: 67.48 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.88e-05/1.538, allocations: 18.06 kB / 0.7301 GB, free: 67.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.261e-05/1.538, allocations: 4.938 kB / 0.7301 GB, free: 67.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/1.538, allocations: 7.172 kB / 0.7301 GB, free: 67.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/1.548, allocations: 5.554 MB / 0.7355 GB, free: 66.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/1.548, allocations: 2.625 kB / 0.7355 GB, free: 66.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001311/1.55, allocations: 293.1 kB / 0.7358 GB, free: 66.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000895/1.551, allocations: 316.6 kB / 0.7361 GB, free: 66.79 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000132/1.551, allocations: 37.39 kB / 0.7361 GB, free: 66.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005928/1.557, allocations: 6.303 MB / 0.7423 GB, free: 62.76 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/1.557, allocations: 4.188 kB / 0.7423 GB, free: 62.76 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005938/1.563, allocations: 3.398 MB / 0.7456 GB, free: 62.03 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001635/1.564, allocations: 495.9 kB / 0.7461 GB, free: 61.81 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005806/1.565, allocations: 32.72 kB / 0.7461 GB, free: 61.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001348/1.566, allocations: 91.28 kB / 0.7462 GB, free: 61.81 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004091/1.567, allocations: 117.6 kB / 0.7463 GB, free: 61.81 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/1.567, allocations: 43.67 kB / 0.7464 GB, free: 61.81 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00334/1.57, allocations: 1.49 MB / 0.7478 GB, free: 61.65 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.7e-07/1.57, allocations: 0 / 0.7478 GB, free: 61.65 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004463/1.575, allocations: 0.7247 MB / 0.7485 GB, free: 61.65 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 123 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00627/1.581, allocations: 4.679 MB / 0.7531 GB, free: 60.04 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003457/1.585, allocations: 2.081 MB / 0.7551 GB, free: 59.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/1.585, allocations: 0 / 0.7551 GB, free: 59.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001998/1.587, allocations: 1.336 MB / 0.7564 GB, free: 59.43 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003629/1.59, allocations: 0.5589 MB / 0.757 GB, free: 59.42 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01668/1.607, allocations: 6.523 MB / 0.7634 GB, free: 58 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002598/1.61, allocations: 2.735 MB / 0.766 GB, free: 57.2 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002551/1.612, allocations: 0.5465 MB / 0.7666 GB, free: 57.12 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002156/1.614, allocations: 1.475 MB / 0.768 GB, free: 57.12 MB / 442.7 MB Notification: Performance of SimCode: time 1.292e-06/1.614, allocations: 0 / 0.768 GB, free: 57.12 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09995/1.714, allocations: 61.62 MB / 0.8282 GB, free: 41.53 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001764/1.715, allocations: 210.7 kB / 0.8284 GB, free: 41.31 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.258/5.973, allocations: 0 / 0.8284 GB, free: 41.31 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_DOL.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.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_DOL_res.mat does not exist to compare? outputFormat=mat