Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.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_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",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.001863/0.001863, allocations: 177 kB / 8.7 MB, free: 384 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.642/1.642, allocations: 205.3 MB / 214.4 MB, free: 1.672 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.0008245/0.0008245, allocations: 86.36 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.693e-05/1.706e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09134/0.09138, allocations: 47.58 MB / 363.2 MB, free: 6.969 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3762/0.4677, allocations: 135.3 MB / 498.4 MB, free: 9.195 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002608/0.468, allocations: 85.2 kB / 498.5 MB, free: 9.152 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4911/0.9591, allocations: 129.5 MB / 0.6133 GB, free: 72.52 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.9591, allocations: 0 / 0.6133 GB, free: 72.52 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004814/0.9596, allocations: 143.7 kB / 0.6134 GB, free: 72.38 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.01531/0.975, allocations: 5.424 MB / 0.6187 GB, free: 66.9 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.975, allocations: 8.031 kB / 0.6187 GB, free: 66.89 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006488/0.9815, allocations: 1.152 MB / 0.6198 GB, free: 65.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01249/0.994, allocations: 4.897 MB / 0.6246 GB, free: 60.85 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003078/0.9944, allocations: 192 kB / 0.6248 GB, free: 60.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002046/0.9965, allocations: 335.9 kB / 0.6251 GB, free: 60.33 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01337/1.01, allocations: 5.248 MB / 0.6302 GB, free: 55.08 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01697/1.027, allocations: 6.23 MB / 0.6363 GB, free: 48.67 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002171/1.027, allocations: 15.83 kB / 0.6363 GB, free: 48.65 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001161/1.028, allocations: 11.95 kB / 0.6363 GB, free: 48.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001927/1.028, allocations: 247.3 kB / 0.6366 GB, free: 48.4 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03968/1.068, allocations: 22.85 MB / 0.6589 GB, free: 25.12 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006429/1.075, allocations: 8.526 MB / 0.6672 GB, free: 15.65 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003064/1.078, allocations: 2.15 MB / 0.6693 GB, free: 13.5 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01156/1.089, allocations: 6.799 MB / 0.676 GB, free: 6.574 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.417e-05/1.089, allocations: 56.56 kB / 0.676 GB, free: 6.512 MB / 410.7 MB Notification: Performance of pre-optimization done (n=241): time 4.278e-06/1.089, allocations: 0 / 0.676 GB, free: 6.512 MB / 410.7 MB Notification: Performance of matching and sorting (n=292): time 0.2715/1.361, allocations: 10.31 MB / 0.6861 GB, free: 68.21 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.173e-05/1.361, allocations: 84.84 kB / 0.6862 GB, free: 68.15 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004665/1.366, allocations: 2.393 MB / 0.6885 GB, free: 67.91 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005358/1.366, allocations: 27.95 kB / 0.6885 GB, free: 67.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001862/1.368, allocations: 2.686 MB / 0.6911 GB, free: 66.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001049/1.369, allocations: 0.957 MB / 0.6921 GB, free: 66.23 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001918/1.369, allocations: 0 / 0.6921 GB, free: 66.23 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001936/1.37, allocations: 454 kB / 0.6925 GB, free: 65.92 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002317/1.372, allocations: 1.411 MB / 0.6939 GB, free: 65.91 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002856/1.375, allocations: 2.571 MB / 0.6964 GB, free: 64.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003815/1.379, allocations: 2.029 MB / 0.6984 GB, free: 64.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-05/1.379, allocations: 11.42 kB / 0.6984 GB, free: 64.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=478) (initialization): time 0.009324/1.388, allocations: 5.147 MB / 0.7034 GB, free: 64.04 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.11e-05/1.388, allocations: 21 kB / 0.7034 GB, free: 64.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.906e-05/1.388, allocations: 43.38 kB / 0.7035 GB, free: 64.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002071/1.39, allocations: 0.8559 MB / 0.7043 GB, free: 64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003435/1.394, allocations: 0.8752 MB / 0.7052 GB, free: 64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009828/1.404, allocations: 9.347 MB / 0.7143 GB, free: 60.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003835/1.407, allocations: 174.5 kB / 0.7145 GB, free: 60.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006823/1.408, allocations: 171.8 kB / 0.7146 GB, free: 60.05 MB / 410.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 (425): * Single equations (assignments): 416 * 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.0006344/1.409, allocations: 212.3 kB / 0.7148 GB, free: 59.93 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007024/1.416, allocations: 4.168 MB / 0.7189 GB, free: 59.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001118/1.417, allocations: 355.5 kB / 0.7192 GB, free: 59.18 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007816/1.425, allocations: 4.424 MB / 0.7236 GB, free: 58.74 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-05/1.425, allocations: 27.44 kB / 0.7236 GB, free: 58.74 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.343e-05/1.425, allocations: 10.73 kB / 0.7236 GB, free: 58.74 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-05/1.425, allocations: 17.53 kB / 0.7236 GB, free: 58.74 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01697/1.442, allocations: 9.172 MB / 0.7326 GB, free: 57.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.005653/1.448, allocations: 3.816 MB / 0.7363 GB, free: 55.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002189/1.45, allocations: 0.508 MB / 0.7368 GB, free: 55.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002319/1.452, allocations: 0.9628 MB / 0.7377 GB, free: 55.28 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002713/1.453, allocations: 33.14 kB / 0.7378 GB, free: 55.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01218/1.465, allocations: 14.22 MB / 0.7517 GB, free: 44.69 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/1.465, allocations: 5.906 kB / 0.7517 GB, free: 44.69 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0095/1.474, allocations: 6.872 MB / 0.7584 GB, free: 41.19 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001947/1.476, allocations: 0.737 MB / 0.7591 GB, free: 40.71 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005861/1.477, allocations: 14.17 kB / 0.7591 GB, free: 40.71 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001906/1.479, allocations: 152.2 kB / 0.7592 GB, free: 40.71 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004515/1.479, allocations: 217.7 kB / 0.7595 GB, free: 40.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001824/1.479, allocations: 84.83 kB / 0.7595 GB, free: 40.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002619/1.482, allocations: 1.752 MB / 0.7612 GB, free: 39.94 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.9e-07/1.482, allocations: 0 / 0.7612 GB, free: 39.94 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005285/1.487, allocations: 1.031 MB / 0.7623 GB, free: 39.91 MB / 410.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.strayReluctance.Phi.re,smeeM.stator.strayReluctance.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 (229): * Single equations (assignments): 220 * 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,72.2%) 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.01007/1.497, allocations: 8.852 MB / 0.7709 GB, free: 34.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006035/1.504, allocations: 4.469 MB / 0.7753 GB, free: 30.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/1.504, allocations: 0 / 0.7753 GB, free: 30.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004213/1.508, allocations: 2.87 MB / 0.7781 GB, free: 27.59 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004458/1.512, allocations: 0.6035 MB / 0.7787 GB, free: 27.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02517/1.538, allocations: 9.667 MB / 0.7881 GB, free: 18.64 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005167/1.543, allocations: 3.622 MB / 0.7916 GB, free: 15.93 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003831/1.547, allocations: 0.7999 MB / 0.7924 GB, free: 15.38 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003657/1.55, allocations: 2.213 MB / 0.7946 GB, free: 13.34 MB / 410.7 MB Notification: Performance of SimCode: time 1.593e-06/1.55, allocations: 0 / 0.7946 GB, free: 13.34 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3795/1.93, allocations: 82.68 MB / 0.8753 GB, free: 81.6 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001285/1.93, allocations: 163.5 kB / 0.8755 GB, free: 81.41 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.83/6.76, allocations: 0 / 0.8755 GB, free: 81.41 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat