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.0009413/0.0009414, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.334/1.334, allocations: 205.2 MB / 219.8 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007253/0.0007255, allocations: 86.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.871e-05/2.893e-05, allocations: 4 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08258/0.08263, allocations: 47.56 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3541/0.4368, allocations: 135.7 MB / 0.4939 GB, free: 6.73 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/0.4371, allocations: 86.14 kB / 0.494 GB, free: 6.688 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5213/0.9584, allocations: 131.2 MB / 0.6221 GB, free: 62.63 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.9585, allocations: 0 / 0.6221 GB, free: 62.63 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004417/0.9589, allocations: 147.8 kB / 0.6222 GB, free: 62.49 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.01504/0.974, allocations: 5.424 MB / 0.6275 GB, free: 56.99 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.974, allocations: 8.031 kB / 0.6276 GB, free: 56.98 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00234/0.9764, allocations: 0.77 MB / 0.6283 GB, free: 56.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006862/0.9832, allocations: 1.148 MB / 0.6294 GB, free: 55.05 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01222/0.9955, allocations: 4.891 MB / 0.6342 GB, free: 50.08 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003742/0.9959, allocations: 427.4 kB / 0.6346 GB, free: 49.66 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001851/0.9978, allocations: 0.5545 MB / 0.6351 GB, free: 49.11 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01347/1.011, allocations: 7.053 MB / 0.642 GB, free: 41.87 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001466/1.011, allocations: 7.938 kB / 0.642 GB, free: 41.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005973/1.012, allocations: 248 kB / 0.6423 GB, free: 41.62 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002001/1.012, allocations: 243.3 kB / 0.6425 GB, free: 41.38 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01143/1.024, allocations: 5.609 MB / 0.648 GB, free: 35.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04355/1.067, allocations: 23.93 MB / 0.6714 GB, free: 11.19 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006753/1.074, allocations: 8.643 MB / 0.6798 GB, free: 1.605 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003177/1.077, allocations: 2.235 MB / 0.682 GB, free: 15.36 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01217/1.09, allocations: 6.963 MB / 0.6888 GB, free: 8.188 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.412e-05/1.09, allocations: 56.56 kB / 0.6888 GB, free: 8.121 MB / 426.7 MB Notification: Performance of pre-optimization done (n=237): time 4.779e-06/1.09, allocations: 0 / 0.6888 GB, free: 8.121 MB / 426.7 MB Notification: Performance of matching and sorting (n=288): time 0.2831/1.373, allocations: 12.16 MB / 0.7007 GB, free: 77.02 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.11e-05/1.373, allocations: 84.59 kB / 0.7008 GB, free: 76.95 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006999/1.38, allocations: 2.939 MB / 0.7037 GB, free: 76.69 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005532/1.38, allocations: 75.45 kB / 0.7037 GB, free: 76.66 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002192/1.383, allocations: 2.682 MB / 0.7064 GB, free: 75.77 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009123/1.384, allocations: 0.9755 MB / 0.7073 GB, free: 75.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002267/1.384, allocations: 77.34 kB / 0.7074 GB, free: 75.15 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001799/1.384, allocations: 453.4 kB / 0.7078 GB, free: 74.84 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002394/1.386, allocations: 1.471 MB / 0.7092 GB, free: 74.83 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002674/1.389, allocations: 2.655 MB / 0.7118 GB, free: 73.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002785/1.392, allocations: 1.948 MB / 0.7137 GB, free: 73.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.726e-05/1.392, allocations: 11.22 kB / 0.7138 GB, free: 73.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=474) (initialization): time 0.009044/1.401, allocations: 5.401 MB / 0.719 GB, free: 72.92 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.39e-05/1.401, allocations: 20.31 kB / 0.719 GB, free: 72.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.909e-05/1.401, allocations: 43 kB / 0.7191 GB, free: 72.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002103/1.403, allocations: 0.869 MB / 0.7199 GB, free: 72.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003093/1.406, allocations: 0.8637 MB / 0.7208 GB, free: 72.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01032/1.417, allocations: 9.758 MB / 0.7303 GB, free: 68.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004088/1.421, allocations: 245.5 kB / 0.7305 GB, free: 68.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006581/1.421, allocations: 169.3 kB / 0.7307 GB, free: 68.79 MB / 426.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 (421): * Single equations (assignments): 412 * 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.00103/1.423, allocations: 328.5 kB / 0.731 GB, free: 68.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001278/1.424, allocations: 388.6 kB / 0.7314 GB, free: 68.46 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007984/1.432, allocations: 4.552 MB / 0.7358 GB, free: 68.02 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/1.432, allocations: 26.97 kB / 0.7359 GB, free: 68.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.29e-05/1.432, allocations: 7.812 kB / 0.7359 GB, free: 68.02 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.289e-05/1.432, allocations: 21.17 kB / 0.7359 GB, free: 68.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01627/1.448, allocations: 9.989 MB / 0.7456 GB, free: 66.23 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.004875/1.453, allocations: 3.829 MB / 0.7494 GB, free: 64.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001991/1.455, allocations: 0.5006 MB / 0.7499 GB, free: 64.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002204/1.457, allocations: 0.9795 MB / 0.7508 GB, free: 64.29 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002027/1.458, allocations: 70.97 kB / 0.7509 GB, free: 64.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01229/1.47, allocations: 14.76 MB / 0.7653 GB, free: 53.19 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.047e-06/1.47, allocations: 12.52 kB / 0.7653 GB, free: 53.19 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01017/1.48, allocations: 7.041 MB / 0.7722 GB, free: 49.56 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00189/1.482, allocations: 0.7762 MB / 0.773 GB, free: 49.05 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009075/1.483, allocations: 65.69 kB / 0.773 GB, free: 49.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002251/1.485, allocations: 193.2 kB / 0.7732 GB, free: 48.98 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005168/1.486, allocations: 217.5 kB / 0.7734 GB, free: 48.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002032/1.486, allocations: 83.97 kB / 0.7735 GB, free: 48.93 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003731/1.49, allocations: 2.219 MB / 0.7757 GB, free: 48.07 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.31e-07/1.49, allocations: 0 / 0.7757 GB, free: 48.07 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004601/1.494, allocations: 1.202 MB / 0.7768 GB, free: 47.95 MB / 426.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 (227): * Single equations (assignments): 218 * 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.009736/1.504, allocations: 9.028 MB / 0.7856 GB, free: 42.79 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006331/1.51, allocations: 4.66 MB / 0.7902 GB, free: 39.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/1.51, allocations: 4 kB / 0.7902 GB, free: 39.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003784/1.514, allocations: 2.966 MB / 0.7931 GB, free: 36.8 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004568/1.519, allocations: 0.8369 MB / 0.7939 GB, free: 36.13 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02097/1.54, allocations: 9.979 MB / 0.8037 GB, free: 27.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003955/1.544, allocations: 3.623 MB / 0.8072 GB, free: 24.62 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003459/1.547, allocations: 0.8363 MB / 0.808 GB, free: 24.05 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003095/1.55, allocations: 2.229 MB / 0.8102 GB, free: 21.98 MB / 426.7 MB Notification: Performance of SimCode: time 1.072e-06/1.55, allocations: 0 / 0.8102 GB, free: 21.98 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4125/1.963, allocations: 97.93 MB / 0.9058 GB, free: 83.47 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001548/1.963, allocations: 201.1 kB / 0.906 GB, free: 83.24 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.46/6.423, allocations: 0 / 0.906 GB, free: 83.24 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