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.00168/0.00168, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 225.6 MB / 234.8 MB, free: 3.203 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008686/0.0008685, allocations: 102.2 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.49e-05/1.5e-05, allocations: 0 / 343.8 MB, free: 8.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 51.49 MB / 395.3 MB, free: 4.645 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3773/0.483, allocations: 114.3 MB / 0.4976 GB, free: 11.11 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/0.4834, allocations: 85.33 kB / 0.4977 GB, free: 11.07 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5352/1.019, allocations: 82.3 MB / 0.5781 GB, free: 82.41 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.385e-06/1.019, allocations: 0 / 0.5781 GB, free: 82.41 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001837/1.019, allocations: 65.89 kB / 0.5781 GB, free: 82.4 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: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.005292/1.024, allocations: 2.638 MB / 0.5807 GB, free: 81.47 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/1.024, allocations: 9.344 kB / 0.5807 GB, free: 81.47 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001795/1.026, allocations: 459.9 kB / 0.5811 GB, free: 81.3 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003368/1.029, allocations: 1.844 MB / 0.5829 GB, free: 80.85 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.668e-05/1.029, allocations: 80.78 kB / 0.583 GB, free: 80.85 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003163/1.03, allocations: 148.7 kB / 0.5832 GB, free: 80.85 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004038/1.034, allocations: 2.306 MB / 0.5854 GB, free: 80.84 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004315/1.038, allocations: 2.779 MB / 0.5881 GB, free: 80.46 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.54e-05/1.038, allocations: 6.938 kB / 0.5881 GB, free: 80.46 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001959/1.038, allocations: 5.469 kB / 0.5881 GB, free: 80.46 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001101/1.039, allocations: 109.5 kB / 0.5882 GB, free: 80.45 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.015/1.054, allocations: 9.97 MB / 0.598 GB, free: 77.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00182/1.055, allocations: 1.73 MB / 0.5997 GB, free: 77.33 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009641/1.056, allocations: 0.8244 MB / 0.6005 GB, free: 77.32 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000325/1.057, allocations: 219.8 kB / 0.6007 GB, free: 77.13 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.838e-05/1.057, allocations: 58.59 kB / 0.6007 GB, free: 77.09 MB / 442.7 MB Notification: Performance of pre-optimization done (n=120): time 3.938e-06/1.057, allocations: 0 / 0.6007 GB, free: 77.09 MB / 442.7 MB Notification: Performance of matching and sorting (n=146): time 0.009602/1.066, allocations: 5.463 MB / 0.6061 GB, free: 76.21 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.931e-05/1.067, allocations: 64.94 kB / 0.6061 GB, free: 76.14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001968/1.069, allocations: 1.367 MB / 0.6075 GB, free: 75.98 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001106/1.069, allocations: 25.7 kB / 0.6075 GB, free: 75.95 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000653/1.069, allocations: 1.247 MB / 0.6087 GB, free: 75.36 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00031/1.07, allocations: 495.9 kB / 0.6092 GB, free: 75.04 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.127e-05/1.07, allocations: 0 / 0.6092 GB, free: 75.04 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000101/1.07, allocations: 372.8 kB / 0.6095 GB, free: 74.73 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009651/1.071, allocations: 0.7789 MB / 0.6103 GB, free: 74.72 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001125/1.072, allocations: 1.251 MB / 0.6115 GB, free: 74.18 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00129/1.073, allocations: 0.9893 MB / 0.6125 GB, free: 74.16 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.095e-05/1.073, allocations: 8.125 kB / 0.6125 GB, free: 74.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.00605/1.079, allocations: 2.662 MB / 0.6151 GB, free: 73.98 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.803e-05/1.079, allocations: 10.91 kB / 0.6151 GB, free: 73.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.258e-05/1.079, allocations: 19.05 kB / 0.6151 GB, free: 73.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001994/1.081, allocations: 0.5777 MB / 0.6157 GB, free: 73.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001793/1.083, allocations: 412.8 kB / 0.6161 GB, free: 73.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007205/1.091, allocations: 5.218 MB / 0.6212 GB, free: 71.82 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0019/1.092, allocations: 107.1 kB / 0.6213 GB, free: 71.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002314/1.093, allocations: 71.5 kB / 0.6214 GB, free: 71.81 MB / 442.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 (190): * Single equations (assignments): 186 * 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.0003063/1.093, allocations: 160 kB / 0.6215 GB, free: 71.68 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003921/1.097, allocations: 2.228 MB / 0.6237 GB, free: 70.88 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003635/1.097, allocations: 187.1 kB / 0.6239 GB, free: 70.79 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004654/1.102, allocations: 2.395 MB / 0.6262 GB, free: 69.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.892e-05/1.102, allocations: 15.31 kB / 0.6262 GB, free: 69.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/1.102, allocations: 8.188 kB / 0.6262 GB, free: 69.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-05/1.102, allocations: 10.03 kB / 0.6262 GB, free: 69.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009346/1.111, allocations: 5.007 MB / 0.6311 GB, free: 67.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.745e-05/1.111, allocations: 5.125 kB / 0.6311 GB, free: 67.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/1.113, allocations: 260 kB / 0.6314 GB, free: 67.92 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00165/1.114, allocations: 0.6371 MB / 0.632 GB, free: 67.77 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.885e-05/1.114, allocations: 16.3 kB / 0.632 GB, free: 67.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007375/1.122, allocations: 6.882 MB / 0.6387 GB, free: 63.49 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/1.122, allocations: 3.844 kB / 0.6387 GB, free: 63.49 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004866/1.127, allocations: 3.814 MB / 0.6425 GB, free: 61.61 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009008/1.128, allocations: 450.9 kB / 0.6429 GB, free: 61.32 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002599/1.128, allocations: 7.344 kB / 0.6429 GB, free: 61.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/1.129, allocations: 97.88 kB / 0.643 GB, free: 61.32 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002662/1.129, allocations: 122.5 kB / 0.6431 GB, free: 61.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.673e-05/1.129, allocations: 48.95 kB / 0.6432 GB, free: 61.29 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001454/1.131, allocations: 1.031 MB / 0.6442 GB, free: 60.85 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.4e-07/1.131, allocations: 0 / 0.6442 GB, free: 60.85 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002021/1.133, allocations: 0.5425 MB / 0.6447 GB, free: 60.83 MB / 442.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 (113): * Single equations (assignments): 109 * 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.005085/1.138, allocations: 5.586 MB / 0.6501 GB, free: 57.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003472/1.141, allocations: 2.389 MB / 0.6525 GB, free: 56.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.209e-06/1.141, allocations: 7.234 kB / 0.6525 GB, free: 56.39 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002253/1.144, allocations: 1.524 MB / 0.654 GB, free: 55.67 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002097/1.146, allocations: 319.2 kB / 0.6543 GB, free: 55.58 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009314/1.155, allocations: 4.729 MB / 0.6589 GB, free: 53.61 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001598/1.157, allocations: 2.081 MB / 0.6609 GB, free: 52.66 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001421/1.158, allocations: 405.4 kB / 0.6613 GB, free: 52.62 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001113/1.159, allocations: 1.001 MB / 0.6623 GB, free: 51.8 MB / 442.7 MB Notification: Performance of SimCode: time 1.002e-06/1.159, allocations: 0 / 0.6623 GB, free: 51.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08106/1.24, allocations: 43.59 MB / 0.7049 GB, free: 33.62 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002579/1.241, allocations: 173.1 kB / 0.705 GB, free: 33.43 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.358/4.599, allocations: 0 / 0.705 GB, free: 33.43 MB / 442.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