Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_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.001546/0.001546, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.514/1.514, allocations: 221.5 MB / 230.3 MB, free: 7.512 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.001012/0.001012, allocations: 105.5 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.8e-05/1.802e-05, allocations: 0 / 337.2 MB, free: 9.891 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.123, allocations: 50.42 MB / 387.6 MB, free: 7.426 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4987/0.6217, allocations: 166.9 MB / 0.5415 GB, free: 7.562 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003784/0.6222, allocations: 103.9 kB / 0.5416 GB, free: 7.461 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.763/2.385, allocations: 387 MB / 0.9195 GB, free: 48.92 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.883e-06/2.385, allocations: 0 / 0.9195 GB, free: 48.92 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0008811/2.386, allocations: 255.4 kB / 0.9198 GB, free: 48.9 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3043 * Number of variables: 3043 Notification: Performance of Generate backend data structure: time 0.04096/2.427, allocations: 10.14 MB / 0.9297 GB, free: 45.67 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.115e-05/2.427, allocations: 6.875 kB / 0.9297 GB, free: 45.67 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02359/2.451, allocations: 3.729 MB / 0.9333 GB, free: 45.05 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0261/2.477, allocations: 8.895 MB / 0.942 GB, free: 43.93 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007572/2.478, allocations: 356.2 kB / 0.9424 GB, free: 43.93 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005193/2.483, allocations: 0.6284 MB / 0.943 GB, free: 43.92 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03188/2.515, allocations: 12.19 MB / 0.9549 GB, free: 43.87 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0494/2.564, allocations: 14.53 MB / 0.9691 GB, free: 42.57 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000624/2.565, allocations: 11.41 kB / 0.9691 GB, free: 42.57 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003971/2.569, allocations: 11.53 kB / 0.9691 GB, free: 42.57 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009127/2.57, allocations: 0.7096 MB / 0.9698 GB, free: 42.54 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1213/2.691, allocations: 53.94 MB / 1.022 GB, free: 17.22 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03978/2.731, allocations: 22.1 MB / 1.044 GB, free: 14.34 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01031/2.742, allocations: 3.46 MB / 1.047 GB, free: 13.11 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.034/2.776, allocations: 9.878 MB / 1.057 GB, free: 5.531 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001043/2.776, allocations: 70.94 kB / 1.057 GB, free: 5.461 MB / 490.7 MB Notification: Performance of pre-optimization done (n=313): time 1.3e-05/2.776, allocations: 0 / 1.057 GB, free: 5.461 MB / 490.7 MB Notification: Performance of matching and sorting (n=346): time 0.4165/3.192, allocations: 15.87 MB / 1.073 GB, free: 61.71 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.334e-05/3.192, allocations: 114.3 kB / 1.073 GB, free: 61.62 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009952/3.202, allocations: 3.891 MB / 1.077 GB, free: 61.28 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009716/3.203, allocations: 32.81 kB / 1.077 GB, free: 61.25 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004588/3.208, allocations: 5.157 MB / 1.082 GB, free: 58.96 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001886/3.21, allocations: 1.162 MB / 1.083 GB, free: 58.22 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005911/3.211, allocations: 0.625 kB / 1.083 GB, free: 58.22 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004819/3.211, allocations: 0.5527 MB / 1.083 GB, free: 57.9 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005116/3.216, allocations: 2.617 MB / 1.086 GB, free: 57.89 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006472/3.223, allocations: 5.276 MB / 1.091 GB, free: 54.55 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00888/3.232, allocations: 4.527 MB / 1.095 GB, free: 54.52 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001638/3.232, allocations: 28 kB / 1.095 GB, free: 54.52 MB / 490.7 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.01983/3.252, allocations: 9.355 MB / 1.105 GB, free: 54.03 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001042/3.252, allocations: 42.81 kB / 1.105 GB, free: 54.03 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002028/3.252, allocations: 90.94 kB / 1.105 GB, free: 54.03 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00229/3.254, allocations: 0.9049 MB / 1.106 GB, free: 53.99 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006009/3.26, allocations: 1.493 MB / 1.107 GB, free: 53.99 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01029/3.271, allocations: 9.349 MB / 1.116 GB, free: 50.05 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007545/3.278, allocations: 403 kB / 1.117 GB, free: 50.02 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001612/3.28, allocations: 335.3 kB / 1.117 GB, free: 50.02 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 416 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (754): * Single equations (assignments): 744 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 3 {(2,100.0%) 8,(1,100.0%) 5,(8,67.2%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001184/3.281, allocations: 343.6 kB / 1.117 GB, free: 49.86 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01127/3.292, allocations: 6.045 MB / 1.123 GB, free: 49.24 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001506/3.294, allocations: 479.4 kB / 1.124 GB, free: 48.99 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0118/3.306, allocations: 6.598 MB / 1.13 GB, free: 48.52 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009249/3.315, allocations: 5.626 MB / 1.135 GB, free: 48.14 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.727e-05/3.315, allocations: 13.72 kB / 1.136 GB, free: 48.14 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-05/3.315, allocations: 20.59 kB / 1.136 GB, free: 48.14 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03983/3.355, allocations: 20.4 MB / 1.155 GB, free: 46.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.679e-05/3.355, allocations: 3.688 kB / 1.155 GB, free: 46.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002788/3.358, allocations: 0.6177 MB / 1.156 GB, free: 46.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002934/3.361, allocations: 1.124 MB / 1.157 GB, free: 45.97 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000624/3.361, allocations: 38.73 kB / 1.157 GB, free: 45.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01491/3.376, allocations: 14.24 MB / 1.171 GB, free: 35.96 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.003011/3.379, allocations: 2.72 MB / 1.174 GB, free: 33.89 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.017/3.396, allocations: 10.14 MB / 1.184 GB, free: 28.86 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004921/3.401, allocations: 1.025 MB / 1.185 GB, free: 28.23 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001973/3.403, allocations: 12.58 kB / 1.185 GB, free: 28.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004476/3.408, allocations: 223.6 kB / 1.185 GB, free: 28.23 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008604/3.409, allocations: 271.5 kB / 1.185 GB, free: 28.18 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002878/3.409, allocations: 103.7 kB / 1.185 GB, free: 28.16 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005562/3.415, allocations: 2.801 MB / 1.188 GB, free: 27.03 MB / 490.7 MB Notification: Performance of sort global known variables: time 2.91e-07/3.415, allocations: 4.344 kB / 1.188 GB, free: 27.03 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009917/3.425, allocations: 1.752 MB / 1.19 GB, free: 27 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (smeeQS.gamma,smeeQS.excitation.electroMagneticConverter.port_p.reference.gamma,$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],smee.stator.zeroInductor.i0) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (291): * Single equations (assignments): 282 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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: 4 {(8,65.6%) 26,(2,100.0%) 8,(1,100.0%) 4,(1,100.0%) 8} * Non-linear torn systems: 1 {5 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01639/3.441, allocations: 12.18 MB / 1.202 GB, free: 20.41 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01084/3.452, allocations: 6.77 MB / 1.208 GB, free: 15.79 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.73e-05/3.452, allocations: 1.969 kB / 1.208 GB, free: 15.79 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00612/3.458, allocations: 3.55 MB / 1.212 GB, free: 12.63 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006778/3.465, allocations: 0.8686 MB / 1.213 GB, free: 11.96 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05542/3.52, allocations: 18.25 MB / 1.23 GB, free: 12.66 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01305/3.534, allocations: 6.778 MB / 1.237 GB, free: 7.609 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007472/3.541, allocations: 1.82 MB / 1.239 GB, free: 6.41 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3221/3.863, allocations: 4.576 MB / 1.243 GB, free: 63.52 MB / 0.4948 GB Notification: Performance of SimCode: time 9.72e-07/3.863, allocations: 0 / 1.243 GB, free: 63.52 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.229/4.092, allocations: 132.4 MB / 1.372 GB, free: 30.85 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002101/4.092, allocations: 211.7 kB / 1.373 GB, free: 30.55 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.324/10.42, allocations: 3.094 kB / 1.373 GB, free: 30.55 MB / 0.4948 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat