Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_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 trunk/package.mo): time 0.001222/0.001222, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009003/0.0009002, allocations: 86.25 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.67e-05/3.698e-05, allocations: 4 kB / 350.7 MB, free: 2.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1159, allocations: 51.49 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4079/0.5239, allocations: 138.4 MB / 0.5278 GB, free: 172 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/0.5242, allocations: 88.12 kB / 0.5279 GB, free: 124 kB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5603/1.085, allocations: 135 MB / 0.6598 GB, free: 72.85 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.473e-06/1.085, allocations: 0 / 0.6598 GB, free: 72.85 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000527/1.085, allocations: 145.8 kB / 0.6599 GB, free: 72.82 MB / 442.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.01829/1.103, allocations: 5.463 MB / 0.6653 GB, free: 69.4 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/1.103, allocations: 7.406 kB / 0.6653 GB, free: 69.4 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002922/1.106, allocations: 0.7624 MB / 0.666 GB, free: 68.84 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007644/1.114, allocations: 1.199 MB / 0.6672 GB, free: 68.26 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01469/1.129, allocations: 4.932 MB / 0.672 GB, free: 65.05 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004018/1.129, allocations: 427.4 kB / 0.6724 GB, free: 64.86 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002374/1.132, allocations: 0.5593 MB / 0.6729 GB, free: 64.67 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0166/1.148, allocations: 7.047 MB / 0.6798 GB, free: 60.46 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001478/1.148, allocations: 11.91 kB / 0.6798 GB, free: 60.45 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006135/1.149, allocations: 239.5 kB / 0.6801 GB, free: 60.22 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001908/1.149, allocations: 251.3 kB / 0.6803 GB, free: 59.98 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01055/1.16, allocations: 5.605 MB / 0.6858 GB, free: 54.37 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0369/1.197, allocations: 24 MB / 0.7092 GB, free: 29.89 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006642/1.203, allocations: 8.914 MB / 0.7179 GB, free: 20 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003022/1.206, allocations: 2.244 MB / 0.7201 GB, free: 17.75 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01122/1.218, allocations: 7.557 MB / 0.7275 GB, free: 9.926 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/1.218, allocations: 68.56 kB / 0.7276 GB, free: 9.848 MB / 442.7 MB Notification: Performance of pre-optimization done (n=237): time 4.639e-06/1.218, allocations: 0 / 0.7276 GB, free: 9.848 MB / 442.7 MB Notification: Performance of matching and sorting (n=288): time 0.3109/1.529, allocations: 12.13 MB / 0.7394 GB, free: 67.86 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/1.529, allocations: 89.72 kB / 0.7395 GB, free: 67.79 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004873/1.534, allocations: 2.943 MB / 0.7424 GB, free: 67.56 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000478/1.534, allocations: 73.14 kB / 0.7424 GB, free: 67.53 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001624/1.536, allocations: 2.68 MB / 0.7451 GB, free: 67.28 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007695/1.537, allocations: 0.9878 MB / 0.746 GB, free: 66.76 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/1.537, allocations: 75.34 kB / 0.7461 GB, free: 66.76 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001733/1.537, allocations: 456.6 kB / 0.7465 GB, free: 66.45 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002081/1.539, allocations: 1.473 MB / 0.748 GB, free: 66.45 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002413/1.541, allocations: 2.652 MB / 0.7506 GB, free: 65.07 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002506/1.544, allocations: 1.955 MB / 0.7525 GB, free: 65.01 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.06e-05/1.544, allocations: 12.47 kB / 0.7525 GB, free: 65.01 MB / 442.7 MB Notification: Performance of matching and sorting (n=474) (initialization): time 0.007983/1.552, allocations: 5.4 MB / 0.7577 GB, free: 64.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.046e-05/1.552, allocations: 23.64 kB / 0.7578 GB, free: 64.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.466e-05/1.552, allocations: 43.78 kB / 0.7578 GB, free: 64.54 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001875/1.554, allocations: 0.8584 MB / 0.7586 GB, free: 64.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002947/1.557, allocations: 0.8602 MB / 0.7595 GB, free: 64.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009845/1.567, allocations: 9.776 MB / 0.769 GB, free: 60.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003755/1.571, allocations: 243.1 kB / 0.7693 GB, free: 60.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004896/1.571, allocations: 169.4 kB / 0.7694 GB, free: 60.41 MB / 442.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.0006323/1.572, allocations: 332.7 kB / 0.7697 GB, free: 60.28 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00077/1.573, allocations: 394.1 kB / 0.7701 GB, free: 60.08 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008194/1.581, allocations: 4.563 MB / 0.7746 GB, free: 59.63 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.418e-05/1.581, allocations: 27.97 kB / 0.7746 GB, free: 59.63 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-05/1.581, allocations: 13.06 kB / 0.7746 GB, free: 59.63 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-05/1.581, allocations: 13.77 kB / 0.7746 GB, free: 59.63 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01849/1.599, allocations: 9.98 MB / 0.7844 GB, free: 57.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.006854/1.606, allocations: 3.824 MB / 0.7881 GB, free: 56.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002571/1.609, allocations: 0.4952 MB / 0.7886 GB, free: 56.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002519/1.611, allocations: 0.9755 MB / 0.7895 GB, free: 55.92 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003362/1.612, allocations: 70.56 kB / 0.7896 GB, free: 55.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01327/1.625, allocations: 14.78 MB / 0.804 GB, free: 44.81 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/1.625, allocations: 6.812 kB / 0.8041 GB, free: 44.81 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01057/1.636, allocations: 7.158 MB / 0.811 GB, free: 41.07 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002574/1.638, allocations: 0.7731 MB / 0.8118 GB, free: 40.56 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001274/1.64, allocations: 63.84 kB / 0.8119 GB, free: 40.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002508/1.642, allocations: 189.6 kB / 0.812 GB, free: 40.49 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006625/1.643, allocations: 218.8 kB / 0.8122 GB, free: 40.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002123/1.643, allocations: 83.7 kB / 0.8123 GB, free: 40.43 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003827/1.647, allocations: 2.22 MB / 0.8145 GB, free: 39.58 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.647, allocations: 3.5 kB / 0.8145 GB, free: 39.58 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005628/1.652, allocations: 1.214 MB / 0.8157 GB, free: 39.45 MB / 442.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.stray.Phi.re,smeeM.stator.stray.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,75.0%) 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.01138/1.664, allocations: 9.06 MB / 0.8245 GB, free: 34.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007118/1.671, allocations: 4.66 MB / 0.8291 GB, free: 32.11 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.395e-05/1.671, allocations: 1.938 kB / 0.8291 GB, free: 32.11 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004263/1.675, allocations: 2.976 MB / 0.832 GB, free: 30.47 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004562/1.68, allocations: 0.8463 MB / 0.8328 GB, free: 30.21 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02247/1.702, allocations: 10.01 MB / 0.8426 GB, free: 25.63 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003231/1.706, allocations: 3.633 MB / 0.8461 GB, free: 22.91 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003624/1.709, allocations: 0.841 MB / 0.847 GB, free: 22.33 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003098/1.712, allocations: 2.234 MB / 0.8491 GB, free: 20.26 MB / 442.7 MB Notification: Performance of SimCode: time 1.032e-06/1.713, allocations: 0 / 0.8491 GB, free: 20.26 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4935/2.206, allocations: 98.61 MB / 0.9454 GB, free: 84.08 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002136/2.206, allocations: 219.2 kB / 0.9456 GB, free: 83.86 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.58/7.787, allocations: 12.41 kB / 0.9457 GB, free: 83.86 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat