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.001687/0.001687, allocations: 196.5 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.55/1.55, allocations: 225.4 MB / 240.1 MB, free: 15.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008622/0.0008623, allocations: 87.19 kB / 292.1 MB, free: 5.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.586e-05/4.606e-05, allocations: 0 / 350.7 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1192, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3453/0.4645, allocations: 114.9 MB / 0.5049 GB, free: 7.062 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002371/0.4648, allocations: 89.31 kB / 0.505 GB, free: 7.016 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4711/0.9359, allocations: 83.39 MB / 0.5865 GB, free: 77.86 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.9359, allocations: 0 / 0.5865 GB, free: 77.86 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002505/0.9362, allocations: 62.42 kB / 0.5865 GB, free: 77.86 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.007076/0.9433, allocations: 2.64 MB / 0.5891 GB, free: 76.9 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.9434, allocations: 12.09 kB / 0.5891 GB, free: 76.9 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001131/0.9445, allocations: 359.1 kB / 0.5895 GB, free: 76.85 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002278/0.9468, allocations: 461.5 kB / 0.5899 GB, free: 76.69 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004094/0.9509, allocations: 1.842 MB / 0.5917 GB, free: 76.24 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.9511, allocations: 187.3 kB / 0.5919 GB, free: 76.23 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006276/0.9517, allocations: 254.5 kB / 0.5921 GB, free: 76.23 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0059/0.9576, allocations: 3.144 MB / 0.5952 GB, free: 75.84 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.311e-05/0.9577, allocations: 7.844 kB / 0.5952 GB, free: 75.84 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002444/0.9579, allocations: 104.2 kB / 0.5953 GB, free: 75.84 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001002/0.958, allocations: 113.1 kB / 0.5954 GB, free: 75.83 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003789/0.9618, allocations: 2.454 MB / 0.5978 GB, free: 75.8 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.016/0.9779, allocations: 10.46 MB / 0.608 GB, free: 73.18 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002441/0.9803, allocations: 1.765 MB / 0.6097 GB, free: 72.57 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001492/0.9819, allocations: 0.8628 MB / 0.6106 GB, free: 72.55 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003683/0.9822, allocations: 223.4 kB / 0.6108 GB, free: 72.37 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.277e-05/0.9823, allocations: 46.62 kB / 0.6108 GB, free: 72.33 MB / 442.7 MB Notification: Performance of pre-optimization done (n=118): time 4.098e-06/0.9823, allocations: 0 / 0.6108 GB, free: 72.33 MB / 442.7 MB Notification: Performance of matching and sorting (n=144): time 0.01749/0.9998, allocations: 6.955 MB / 0.6176 GB, free: 71.43 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/0.9999, allocations: 69.78 kB / 0.6177 GB, free: 71.37 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002659/1.003, allocations: 1.629 MB / 0.6193 GB, free: 71.19 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001066/1.003, allocations: 47.95 kB / 0.6193 GB, free: 71.16 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006896/1.003, allocations: 1.238 MB / 0.6205 GB, free: 70.61 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003357/1.004, allocations: 0.4912 MB / 0.621 GB, free: 70.29 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.247e-05/1.004, allocations: 33.25 kB / 0.6211 GB, free: 70.29 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/1.004, allocations: 381.5 kB / 0.6214 GB, free: 69.98 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/1.005, allocations: 0.813 MB / 0.6222 GB, free: 69.98 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001421/1.007, allocations: 1.283 MB / 0.6235 GB, free: 69.28 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/1.008, allocations: 1.018 MB / 0.6245 GB, free: 68.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.2e-05/1.008, allocations: 7.344 kB / 0.6245 GB, free: 68.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.004899/1.013, allocations: 2.841 MB / 0.6272 GB, free: 67.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.359e-05/1.013, allocations: 12.75 kB / 0.6273 GB, free: 67.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.749e-05/1.013, allocations: 22.95 kB / 0.6273 GB, free: 67.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001522/1.015, allocations: 0.5846 MB / 0.6278 GB, free: 67.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001474/1.016, allocations: 412.6 kB / 0.6282 GB, free: 67.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006553/1.023, allocations: 5.456 MB / 0.6336 GB, free: 64.77 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002065/1.025, allocations: 146.8 kB / 0.6337 GB, free: 64.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001558/1.025, allocations: 73.05 kB / 0.6338 GB, free: 64.72 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 (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.0003263/1.025, allocations: 211.9 kB / 0.634 GB, free: 64.55 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003363/1.026, allocations: 201.4 kB / 0.6342 GB, free: 64.45 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004039/1.03, allocations: 2.516 MB / 0.6366 GB, free: 63.5 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.097e-05/1.03, allocations: 14.25 kB / 0.6366 GB, free: 63.5 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/1.03, allocations: 10.22 kB / 0.6367 GB, free: 63.5 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/1.03, allocations: 3.797 kB / 0.6367 GB, free: 63.5 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008889/1.039, allocations: 5.431 MB / 0.642 GB, free: 61.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.537e-05/1.039, allocations: 3.938 kB / 0.642 GB, free: 61.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009644/1.04, allocations: 255.2 kB / 0.6422 GB, free: 61.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001552/1.041, allocations: 0.6488 MB / 0.6428 GB, free: 61.12 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/1.041, allocations: 42.7 kB / 0.6429 GB, free: 61.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007513/1.049, allocations: 7.133 MB / 0.6498 GB, free: 56.64 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/1.049, allocations: 9.547 kB / 0.6499 GB, free: 56.64 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005357/1.054, allocations: 3.965 MB / 0.6537 GB, free: 54.65 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001209/1.055, allocations: 471.2 kB / 0.6542 GB, free: 54.35 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005936/1.056, allocations: 31.11 kB / 0.6542 GB, free: 54.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001535/1.058, allocations: 121.2 kB / 0.6543 GB, free: 54.31 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003287/1.058, allocations: 122.5 kB / 0.6544 GB, free: 54.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001156/1.058, allocations: 42.27 kB / 0.6545 GB, free: 54.27 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00213/1.06, allocations: 1.247 MB / 0.6557 GB, free: 53.78 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.06, allocations: 0 / 0.6557 GB, free: 53.78 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003036/1.063, allocations: 0.647 MB / 0.6563 GB, free: 53.7 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 (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.006219/1.069, allocations: 5.682 MB / 0.6619 GB, free: 50.25 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003935/1.073, allocations: 2.483 MB / 0.6643 GB, free: 49.17 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.385e-06/1.073, allocations: 7.938 kB / 0.6643 GB, free: 49.17 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002411/1.076, allocations: 1.567 MB / 0.6658 GB, free: 48.41 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00266/1.079, allocations: 420.3 kB / 0.6662 GB, free: 48.29 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01082/1.089, allocations: 4.881 MB / 0.671 GB, free: 46.21 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001447/1.091, allocations: 2.075 MB / 0.673 GB, free: 45.26 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001419/1.092, allocations: 425.1 kB / 0.6734 GB, free: 45.21 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001084/1.093, allocations: 1.005 MB / 0.6744 GB, free: 44.39 MB / 442.7 MB Notification: Performance of SimCode: time 1.232e-06/1.093, allocations: 0 / 0.6744 GB, free: 44.39 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07632/1.17, allocations: 51.8 MB / 0.725 GB, free: 8.383 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001508/1.17, allocations: 199.2 kB / 0.7252 GB, free: 8.16 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.566/4.736, allocations: 5.562 kB / 0.7252 GB, free: 8.156 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