Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001004/0.001005, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.232/1.232, allocations: 227.2 MB / 245 MB, free: 5.941 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009429/0.0009432, allocations: 106 kB / 297.3 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002153/0.0002153, allocations: 8 kB / 358 MB, free: 9.227 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2058/0.206, allocations: 51.48 MB / 409.5 MB, free: 26.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3217/0.5277, allocations: 115 MB / 0.5122 GB, free: 47.01 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/0.5281, allocations: 90.72 kB / 0.5123 GB, free: 47.01 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1979/0.726, allocations: 83.28 MB / 0.5936 GB, free: 6.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.726, allocations: 4 kB / 0.5936 GB, free: 6.906 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002789/0.7263, allocations: 75.86 kB / 0.5937 GB, free: 6.832 MB / 378.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.008662/0.735, allocations: 2.989 MB / 0.5966 GB, free: 3.777 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.735, allocations: 8.031 kB / 0.5966 GB, free: 3.77 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001195/0.7362, allocations: 378.7 kB / 0.597 GB, free: 3.391 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002338/0.7386, allocations: 456 kB / 0.5974 GB, free: 2.941 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00443/0.743, allocations: 1.858 MB / 0.5992 GB, free: 1.027 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001831/0.7432, allocations: 189.7 kB / 0.5994 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008611/0.7441, allocations: 244 kB / 0.5997 GB, free: 0.6016 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00787/0.752, allocations: 3.23 MB / 0.6028 GB, free: 13.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001123/0.7522, allocations: 7.891 kB / 0.6028 GB, free: 13.22 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005187/0.7527, allocations: 108 kB / 0.6029 GB, free: 13.11 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001323/0.7528, allocations: 104.9 kB / 0.603 GB, free: 13.01 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005845/0.7587, allocations: 2.592 MB / 0.6056 GB, free: 10.4 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02137/0.7801, allocations: 10.46 MB / 0.6158 GB, free: 15.6 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002596/0.7827, allocations: 1.83 MB / 0.6176 GB, free: 13.65 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003836/0.7832, allocations: 227.1 kB / 0.6178 GB, free: 13.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.7832, allocations: 44.12 kB / 0.6178 GB, free: 13.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=118): time 4.669e-06/0.7832, allocations: 0 / 0.6178 GB, free: 13.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=143): time 0.0225/0.8057, allocations: 8.935 MB / 0.6265 GB, free: 4.266 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/0.8058, allocations: 68.72 kB / 0.6266 GB, free: 4.184 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003583/0.8094, allocations: 1.641 MB / 0.6282 GB, free: 2.547 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001835/0.8096, allocations: 53.7 kB / 0.6283 GB, free: 2.488 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001013/0.8107, allocations: 1.233 MB / 0.6295 GB, free: 1.238 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005158/0.8112, allocations: 0.489 MB / 0.6299 GB, free: 0.7422 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001204/0.8113, allocations: 35.94 kB / 0.63 GB, free: 0.707 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.8115, allocations: 381.8 kB / 0.6303 GB, free: 336 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001594/0.8131, allocations: 0.8824 MB / 0.6312 GB, free: 15.44 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001922/0.815, allocations: 1.364 MB / 0.6325 GB, free: 13.87 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001824/0.8169, allocations: 1.084 MB / 0.6336 GB, free: 12.79 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-05/0.8169, allocations: 4 kB / 0.6336 GB, free: 12.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005614/0.8225, allocations: 2.999 MB / 0.6365 GB, free: 9.766 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.456e-05/0.8226, allocations: 16.31 kB / 0.6365 GB, free: 9.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.99e-05/0.8226, allocations: 16 kB / 0.6366 GB, free: 9.734 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001532/0.8242, allocations: 0.5876 MB / 0.6371 GB, free: 9.141 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/0.8258, allocations: 415.3 kB / 0.6375 GB, free: 8.734 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008113/0.8339, allocations: 5.661 MB / 0.6431 GB, free: 2.938 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002054/0.836, allocations: 139.8 kB / 0.6432 GB, free: 2.801 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003663/0.8364, allocations: 83.94 kB / 0.6433 GB, free: 2.719 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 183 * 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.001946/0.8384, allocations: 0.7861 MB / 0.644 GB, free: 1.922 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006342/0.839, allocations: 201.6 kB / 0.6442 GB, free: 1.723 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005125/0.8441, allocations: 2.658 MB / 0.6468 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.8442, allocations: 16 kB / 0.6468 GB, free: 15.03 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.214e-05/0.8442, allocations: 4 kB / 0.6468 GB, free: 15.03 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.068e-05/0.8442, allocations: 11.92 kB / 0.6469 GB, free: 15.02 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01132/0.8556, allocations: 5.529 MB / 0.6523 GB, free: 9.375 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.09e-05/0.8556, allocations: 4 kB / 0.6523 GB, free: 9.371 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001079/0.8567, allocations: 252.1 kB / 0.6525 GB, free: 9.125 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001832/0.8586, allocations: 0.6573 MB / 0.6531 GB, free: 8.461 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000146/0.8587, allocations: 31.98 kB / 0.6532 GB, free: 8.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009465/0.8682, allocations: 7.402 MB / 0.6604 GB, free: 0.7578 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.014e-05/0.8683, allocations: 11.94 kB / 0.6604 GB, free: 0.7461 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007177/0.8754, allocations: 4.09 MB / 0.6644 GB, free: 12.49 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00141/0.8769, allocations: 470.5 kB / 0.6649 GB, free: 12.01 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005739/0.8775, allocations: 35.95 kB / 0.6649 GB, free: 11.97 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001481/0.879, allocations: 119.9 kB / 0.665 GB, free: 11.86 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002972/0.8793, allocations: 109.2 kB / 0.6651 GB, free: 11.75 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/0.8794, allocations: 47.98 kB / 0.6652 GB, free: 11.7 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002409/0.8818, allocations: 1.263 MB / 0.6664 GB, free: 10.45 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8818, allocations: 0 / 0.6664 GB, free: 10.45 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002642/0.8845, allocations: 0.6405 MB / 0.667 GB, free: 9.809 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * 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,75.0%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00776/0.8923, allocations: 5.652 MB / 0.6725 GB, free: 4.039 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004572/0.8969, allocations: 2.626 MB / 0.6751 GB, free: 1.363 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.8969, allocations: 4.312 kB / 0.6751 GB, free: 1.359 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1917/1.089, allocations: 1.639 MB / 0.6767 GB, free: 114.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002949/1.092, allocations: 412.8 kB / 0.6771 GB, free: 114.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02792/1.12, allocations: 26.69 MB / 0.7032 GB, free: 98.51 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001422/1.121, allocations: 2.072 MB / 0.7052 GB, free: 97.77 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001527/1.123, allocations: 423.4 kB / 0.7056 GB, free: 97.75 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001036/1.124, allocations: 1.011 MB / 0.7066 GB, free: 97.74 MB / 458.7 MB Notification: Performance of SimCode: time 6.51e-07/1.124, allocations: 0 / 0.7066 GB, free: 97.74 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07328/1.197, allocations: 51.52 MB / 0.7569 GB, free: 84.25 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001495/1.197, allocations: 225.8 kB / 0.7571 GB, free: 84.01 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.172/4.369, allocations: 0 / 0.7571 GB, free: 84.01 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat does not exist to compare? outputFormat=mat