Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00153/0.00153, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.697/1.697, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008579/0.000858, allocations: 86.7 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.315e-05/2.316e-05, allocations: 7.984 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09918/0.09922, allocations: 47.59 MB / 363.2 MB, free: 6.961 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3741/0.4734, allocations: 119 MB / 482.2 MB, free: 9.113 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000271/0.4738, allocations: 82.58 kB / 482.2 MB, free: 9.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5433/1.017, allocations: 158.5 MB / 0.6257 GB, free: 58.86 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.014e-06/1.017, allocations: 0 / 0.6257 GB, free: 58.86 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002424/1.017, allocations: 95.88 kB / 0.6258 GB, free: 58.77 MB / 410.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.009691/1.027, allocations: 3.917 MB / 0.6296 GB, free: 54.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/1.027, allocations: 12.03 kB / 0.6296 GB, free: 54.78 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005126/1.032, allocations: 0.9198 MB / 0.6305 GB, free: 53.85 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00805/1.04, allocations: 3.807 MB / 0.6342 GB, free: 50.06 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000133/1.041, allocations: 132 kB / 0.6344 GB, free: 49.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006625/1.041, allocations: 236 kB / 0.6346 GB, free: 49.7 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00626/1.047, allocations: 3.784 MB / 0.6383 GB, free: 45.91 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007141/1.055, allocations: 4.437 MB / 0.6426 GB, free: 41.3 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.59e-05/1.055, allocations: 7.844 kB / 0.6426 GB, free: 41.29 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003227/1.055, allocations: 8 kB / 0.6426 GB, free: 41.29 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001158/1.055, allocations: 176 kB / 0.6428 GB, free: 41.11 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02165/1.077, allocations: 16.18 MB / 0.6586 GB, free: 24.61 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004846/1.082, allocations: 8.195 MB / 0.6666 GB, free: 15.38 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001939/1.084, allocations: 1.556 MB / 0.6681 GB, free: 13.83 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006792/1.091, allocations: 4.724 MB / 0.6727 GB, free: 8.969 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/1.091, allocations: 51.88 kB / 0.6728 GB, free: 8.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=152): time 3.036e-06/1.091, allocations: 0 / 0.6728 GB, free: 8.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=155): time 0.007171/1.098, allocations: 4.708 MB / 0.6774 GB, free: 4.098 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.249e-05/1.098, allocations: 64.72 kB / 0.6774 GB, free: 4.023 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002013/1.1, allocations: 1.656 MB / 0.6791 GB, free: 2.336 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.889e-05/1.1, allocations: 25.7 kB / 0.6791 GB, free: 2.305 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007781/1.101, allocations: 1.85 MB / 0.6809 GB, free: 444 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.2276/1.328, allocations: 0.5066 MB / 0.6814 GB, free: 64.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003775/1.329, allocations: 0 / 0.6814 GB, free: 64.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003199/1.329, allocations: 391.7 kB / 0.6817 GB, free: 64.03 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001851/1.331, allocations: 0.7138 MB / 0.6824 GB, free: 64.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002396/1.333, allocations: 1.386 MB / 0.6838 GB, free: 63.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002728/1.336, allocations: 1.121 MB / 0.6849 GB, free: 63.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.842e-05/1.336, allocations: 8.156 kB / 0.6849 GB, free: 63.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=267) (initialization): time 0.005217/1.341, allocations: 2.591 MB / 0.6874 GB, free: 63 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.982e-05/1.341, allocations: 14.5 kB / 0.6874 GB, free: 63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.812e-05/1.342, allocations: 24.02 kB / 0.6875 GB, free: 63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003334/1.342, allocations: 122 kB / 0.6876 GB, free: 62.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002037/1.344, allocations: 0.5332 MB / 0.6881 GB, free: 62.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001308/1.345, allocations: 1.742 MB / 0.6898 GB, free: 61.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0018/1.347, allocations: 76.03 kB / 0.6899 GB, free: 61.73 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000175/1.347, allocations: 92.11 kB / 0.69 GB, free: 61.73 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 100 * 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 (261): * Single equations (assignments): 259 * 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.0003052/1.348, allocations: 168 kB / 0.6901 GB, free: 61.63 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00355/1.351, allocations: 2.148 MB / 0.6922 GB, free: 61.35 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003294/1.351, allocations: 220.9 kB / 0.6924 GB, free: 61.35 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003651/1.355, allocations: 2.261 MB / 0.6946 GB, free: 61.04 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.935e-05/1.355, allocations: 15 kB / 0.6947 GB, free: 61.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/1.355, allocations: 4.188 kB / 0.6947 GB, free: 61.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.614e-05/1.355, allocations: 7.812 kB / 0.6947 GB, free: 61.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009811/1.365, allocations: 5.043 MB / 0.6996 GB, free: 60.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.967e-06/1.365, allocations: 1.5 kB / 0.6996 GB, free: 60.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001516/1.367, allocations: 296.4 kB / 0.6999 GB, free: 60.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008693/1.367, allocations: 305.8 kB / 0.7002 GB, free: 60.39 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001142/1.368, allocations: 14.39 kB / 0.7002 GB, free: 60.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004882/1.373, allocations: 6.043 MB / 0.7061 GB, free: 56.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/1.373, allocations: 5.859 kB / 0.7061 GB, free: 56.61 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004593/1.377, allocations: 3.41 MB / 0.7094 GB, free: 55.87 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00094/1.378, allocations: 470.3 kB / 0.7099 GB, free: 55.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002899/1.378, allocations: 10.33 kB / 0.7099 GB, free: 55.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/1.379, allocations: 68.39 kB / 0.7099 GB, free: 55.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002436/1.38, allocations: 118.8 kB / 0.7101 GB, free: 55.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.937e-05/1.38, allocations: 50.25 kB / 0.7101 GB, free: 55.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001704/1.382, allocations: 1.216 MB / 0.7113 GB, free: 55.52 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.9e-07/1.382, allocations: 0 / 0.7113 GB, free: 55.52 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002158/1.384, allocations: 0.6182 MB / 0.7119 GB, free: 55.51 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (127): * Single equations (assignments): 124 * 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.004583/1.388, allocations: 4.676 MB / 0.7165 GB, free: 53.83 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002479/1.391, allocations: 1.974 MB / 0.7184 GB, free: 53.61 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/1.391, allocations: 1.641 kB / 0.7184 GB, free: 53.61 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001577/1.392, allocations: 1.313 MB / 0.7197 GB, free: 53.27 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002038/1.394, allocations: 441.9 kB / 0.7201 GB, free: 53.26 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/1.404, allocations: 6.32 MB / 0.7263 GB, free: 51.79 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001947/1.406, allocations: 2.733 MB / 0.7289 GB, free: 50.99 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001756/1.408, allocations: 0.5249 MB / 0.7295 GB, free: 50.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001467/1.41, allocations: 1.464 MB / 0.7309 GB, free: 50.93 MB / 410.7 MB Notification: Performance of SimCode: time 7.01e-07/1.41, allocations: 0 / 0.7309 GB, free: 50.93 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07908/1.489, allocations: 51.11 MB / 0.7808 GB, free: 36.88 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001243/1.489, allocations: 167.9 kB / 0.781 GB, free: 36.68 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.565/5.054, allocations: 0 / 0.781 GB, free: 36.68 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_DOL.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat does not exist to compare? outputFormat=mat