Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_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.0009941/0.0009942, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 221.3 MB / 235.5 MB, free: 2.969 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.0008754/0.0008754, allocations: 99.53 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.803e-05/2.809e-05, allocations: 4 kB / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09491/0.09496, allocations: 50.41 MB / 394.4 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3226/0.4176, allocations: 114.1 MB / 0.4966 GB, free: 5.289 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002473/0.4179, allocations: 85.73 kB / 0.4966 GB, free: 5.207 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4548/0.8727, allocations: 83.27 MB / 0.578 GB, free: 98.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.8727, allocations: 0 / 0.578 GB, free: 98.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001728/0.8729, allocations: 66.81 kB / 0.578 GB, free: 98.9 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.00566/0.8786, allocations: 2.632 MB / 0.5806 GB, free: 97.75 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.8787, allocations: 11.72 kB / 0.5806 GB, free: 97.75 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006133/0.8793, allocations: 359 kB / 0.5809 GB, free: 97.7 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001451/0.8807, allocations: 417.3 kB / 0.5813 GB, free: 97.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003314/0.8841, allocations: 1.844 MB / 0.5831 GB, free: 97.07 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001114/0.8842, allocations: 195.9 kB / 0.5833 GB, free: 97.05 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003343/0.8845, allocations: 251.8 kB / 0.5836 GB, free: 97.05 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004573/0.8891, allocations: 3.144 MB / 0.5866 GB, free: 96.06 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.788e-05/0.8892, allocations: 7.156 kB / 0.5866 GB, free: 96.06 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000229/0.8894, allocations: 112.2 kB / 0.5867 GB, free: 95.98 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.604e-05/0.8895, allocations: 106.4 kB / 0.5869 GB, free: 95.97 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003524/0.893, allocations: 2.45 MB / 0.5892 GB, free: 95.01 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01395/0.907, allocations: 10.47 MB / 0.5995 GB, free: 89.47 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001764/0.9088, allocations: 1.766 MB / 0.6012 GB, free: 88.39 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009609/0.9098, allocations: 0.8615 MB / 0.602 GB, free: 88.07 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003028/0.9101, allocations: 220.5 kB / 0.6022 GB, free: 87.87 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.735e-05/0.9102, allocations: 47.44 kB / 0.6023 GB, free: 87.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=118): time 3.106e-06/0.9102, allocations: 4 kB / 0.6023 GB, free: 87.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=144): time 0.01408/0.9243, allocations: 6.96 MB / 0.6091 GB, free: 85.43 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.322e-05/0.9243, allocations: 70.2 kB / 0.6092 GB, free: 85.37 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002158/0.9265, allocations: 1.619 MB / 0.6107 GB, free: 84.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.683e-05/0.9266, allocations: 49.55 kB / 0.6108 GB, free: 84.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005625/0.9272, allocations: 1.239 MB / 0.612 GB, free: 83.74 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000275/0.9274, allocations: 497 kB / 0.6125 GB, free: 83.37 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.517e-05/0.9275, allocations: 38.62 kB / 0.6125 GB, free: 83.34 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.206e-05/0.9276, allocations: 372.3 kB / 0.6129 GB, free: 83 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009986/0.9286, allocations: 0.8058 MB / 0.6136 GB, free: 82.71 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/0.9298, allocations: 1.294 MB / 0.6149 GB, free: 81.79 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00121/0.931, allocations: 1.014 MB / 0.6159 GB, free: 81.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.797e-06/0.931, allocations: 9.438 kB / 0.6159 GB, free: 81.39 MB / 426.7 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.004205/0.9353, allocations: 2.855 MB / 0.6187 GB, free: 80.31 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/0.9353, allocations: 10.5 kB / 0.6187 GB, free: 80.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.913e-05/0.9353, allocations: 16.28 kB / 0.6187 GB, free: 80.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001333/0.9367, allocations: 0.5899 MB / 0.6193 GB, free: 79.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001376/0.9381, allocations: 412.8 kB / 0.6197 GB, free: 79.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005997/0.9441, allocations: 5.464 MB / 0.625 GB, free: 74.63 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001916/0.946, allocations: 135.7 kB / 0.6252 GB, free: 74.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001455/0.9462, allocations: 71.75 kB / 0.6252 GB, free: 74.46 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (188): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(6,72.2%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003144/0.9465, allocations: 212.6 kB / 0.6254 GB, free: 74.25 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003177/0.9468, allocations: 201.1 kB / 0.6256 GB, free: 74.05 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003822/0.9506, allocations: 2.516 MB / 0.6281 GB, free: 71.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.9507, allocations: 15.95 kB / 0.6281 GB, free: 71.92 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.9507, allocations: 11.56 kB / 0.6281 GB, free: 71.91 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.9507, allocations: 3.422 kB / 0.6281 GB, free: 71.91 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007678/0.9584, allocations: 5.423 MB / 0.6334 GB, free: 67.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-05/0.9584, allocations: 11.88 kB / 0.6334 GB, free: 67.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009568/0.9594, allocations: 251.4 kB / 0.6337 GB, free: 67.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001475/0.9609, allocations: 0.6532 MB / 0.6343 GB, free: 66.65 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.367e-05/0.961, allocations: 35.98 kB / 0.6343 GB, free: 66.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0068/0.9678, allocations: 7.141 MB / 0.6413 GB, free: 59.22 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.9678, allocations: 4 kB / 0.6413 GB, free: 59.21 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004867/0.9727, allocations: 3.956 MB / 0.6452 GB, free: 55.07 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/0.9738, allocations: 474.5 kB / 0.6456 GB, free: 54.58 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002573/0.9741, allocations: 32 kB / 0.6456 GB, free: 54.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001138/0.9752, allocations: 119.9 kB / 0.6458 GB, free: 54.43 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002681/0.9755, allocations: 121 kB / 0.6459 GB, free: 54.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.547e-05/0.9756, allocations: 43.98 kB / 0.6459 GB, free: 54.27 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001659/0.9773, allocations: 1.244 MB / 0.6471 GB, free: 53.04 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.9773, allocations: 0 / 0.6471 GB, free: 53.04 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001979/0.9793, allocations: 0.6405 MB / 0.6478 GB, free: 52.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005173/0.9845, allocations: 5.7 MB / 0.6533 GB, free: 46.59 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003274/0.9877, allocations: 2.477 MB / 0.6557 GB, free: 44.06 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.9878, allocations: 4 kB / 0.6557 GB, free: 44.06 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002074/0.9899, allocations: 1.563 MB / 0.6573 GB, free: 42.46 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001993/0.9919, allocations: 423.4 kB / 0.6577 GB, free: 42.07 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007844/0.9997, allocations: 4.882 MB / 0.6624 GB, free: 37.11 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001323/1.001, allocations: 2.073 MB / 0.6645 GB, free: 35 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001321/1.002, allocations: 415.7 kB / 0.6649 GB, free: 34.61 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001073/1.003, allocations: 1.011 MB / 0.6659 GB, free: 33.59 MB / 426.7 MB Notification: Performance of SimCode: time 1.092e-06/1.003, allocations: 0 / 0.6659 GB, free: 33.59 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.31/1.313, allocations: 51.68 MB / 0.7163 GB, free: 103 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000164/1.314, allocations: 201.2 kB / 0.7165 GB, free: 102.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.231/4.544, allocations: 0 / 0.7165 GB, free: 102.8 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat