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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009716/0.0009717, allocations: 88 kB / 16.31 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 178.2 kB / 17.21 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.588/1.588, allocations: 223.2 MB / 241.2 MB, free: 384 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002447/0.0002448, allocations: 8 kB / 300.9 MB, free: 6.375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09966/0.09992, allocations: 50.42 MB / 351.3 MB, free: 3.941 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01069/0.1106, allocations: 10.13 MB / 361.5 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006293/0.117, allocations: 3.649 MB / 365.1 MB, free: 6.102 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00123/0.1182, allocations: 51.81 kB / 365.2 MB, free: 6.051 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001528/0.1198, allocations: 0.6837 MB / 365.9 MB, free: 5.363 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002404/0.1222, allocations: 0.7962 MB / 366.7 MB, free: 4.562 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001175/0.1234, allocations: 335.5 kB / 367 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003896/0.1273, allocations: 3.242 MB / 370.2 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2108/0.3381, allocations: 1.712 MB / 371.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002123/0.3402, allocations: 1.074 MB / 373 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002276/0.3425, allocations: 1.475 MB / 374.5 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003556/0.3429, allocations: 162.5 kB / 374.7 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009729/0.3439, allocations: 361.9 kB / 375 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009694/0.3448, allocations: 0.7983 MB / 375.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007009/0.3456, allocations: 0.5837 MB / 376.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004544/0.3501, allocations: 4.021 MB / 380.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.3501, allocations: 1.219 kB / 380.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.3501, allocations: 0 / 380.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000111/0.3502, allocations: 0.9844 kB / 380.4 MB, free: 10.18 MB / 302.1 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.006853/0.3571, allocations: 3 MB / 383.4 MB, free: 8.551 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.3572, allocations: 8.562 kB / 383.4 MB, free: 8.551 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000664/0.3578, allocations: 366.7 kB / 383.8 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001435/0.3593, allocations: 407 kB / 384.2 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002924/0.3622, allocations: 1.724 MB / 385.9 MB, free: 7.578 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001752/0.3624, allocations: 207.1 kB / 386.1 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003674/0.3628, allocations: 253.7 kB / 386.3 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005805/0.3686, allocations: 3.239 MB / 389.6 MB, free: 6.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-05/0.3687, allocations: 2.188 kB / 389.6 MB, free: 6.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002294/0.3689, allocations: 100.8 kB / 389.7 MB, free: 6.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001307/0.369, allocations: 121.1 kB / 389.8 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005151/0.3742, allocations: 2.713 MB / 392.5 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01709/0.3913, allocations: 10.44 MB / 403 MB, free: 15.28 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0024/0.3937, allocations: 1.787 MB / 404.7 MB, free: 13.4 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001814/0.3956, allocations: 1.07 MB / 405.8 MB, free: 12.33 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003102/0.3959, allocations: 205.8 kB / 406 MB, free: 12.1 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.533e-05/0.396, allocations: 55.52 kB / 406.1 MB, free: 12.04 MB / 318.1 MB Notification: Performance of pre-optimization done (n=115): time 2.885e-06/0.396, allocations: 0 / 406.1 MB, free: 12.04 MB / 318.1 MB Notification: Performance of matching and sorting (n=134): time 0.01879/0.4148, allocations: 7.741 MB / 413.8 MB, free: 4.199 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.616e-05/0.4149, allocations: 68.66 kB / 413.9 MB, free: 4.117 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003348/0.4182, allocations: 1.861 MB / 415.7 MB, free: 2.258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002067/0.4185, allocations: 49.7 kB / 415.8 MB, free: 2.203 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009956/0.4195, allocations: 1.241 MB / 417 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005014/0.42, allocations: 473 kB / 417.5 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.991e-05/0.4201, allocations: 36 kB / 417.5 MB, free: 472 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001951/0.4203, allocations: 373.9 kB / 417.9 MB, free: 92 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001531/0.4218, allocations: 0.8237 MB / 418.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001723/0.4235, allocations: 1.325 MB / 420 MB, free: 13.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001665/0.4252, allocations: 1.03 MB / 421.1 MB, free: 12.72 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.205e-06/0.4252, allocations: 4 kB / 421.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005241/0.4305, allocations: 2.809 MB / 423.9 MB, free: 9.969 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.573e-05/0.4305, allocations: 15.95 kB / 423.9 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.433e-05/0.4306, allocations: 16 kB / 423.9 MB, free: 9.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001218/0.4318, allocations: 418 kB / 424.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001525/0.4333, allocations: 415.8 kB / 424.7 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006961/0.4403, allocations: 5.299 MB / 430 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002401/0.4428, allocations: 131.8 kB / 430.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002089/0.443, allocations: 71.98 kB / 430.2 MB, free: 3.406 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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): 182 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 2 {(3,100.0%) 12,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002269/0.4453, allocations: 0.7927 MB / 431 MB, free: 2.613 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007307/0.446, allocations: 197.6 kB / 431.2 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004845/0.4509, allocations: 2.426 MB / 433.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.864e-05/0.4509, allocations: 12 kB / 433.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/0.4509, allocations: 4 kB / 433.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.762e-05/0.451, allocations: 10.27 kB / 433.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01068/0.4616, allocations: 5.313 MB / 439 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/0.4617, allocations: 4 kB / 439 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/0.4628, allocations: 264.2 kB / 439.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001271/0.4641, allocations: 461.1 kB / 439.7 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001217/0.4642, allocations: 42.06 kB / 439.7 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007511/0.4717, allocations: 6.718 MB / 446.4 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.05e-05/0.4718, allocations: 11.94 kB / 446.5 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006633/0.4784, allocations: 3.615 MB / 450.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00133/0.4798, allocations: 450.6 kB / 450.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003447/0.4801, allocations: 39.98 kB / 450.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/0.4813, allocations: 107.9 kB / 450.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002716/0.4816, allocations: 112.7 kB / 450.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.4817, allocations: 43.98 kB / 450.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002268/0.484, allocations: 1.275 MB / 452.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.484, allocations: 0 / 452.1 MB, free: 12.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002639/0.4867, allocations: 0.5503 MB / 452.6 MB, free: 12.33 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (115): * Single equations (assignments): 110 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006606/0.4933, allocations: 4.255 MB / 456.9 MB, free: 7.965 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004437/0.4978, allocations: 2.431 MB / 459.3 MB, free: 5.488 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.4978, allocations: 0 / 459.3 MB, free: 5.488 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002688/0.5005, allocations: 1.523 MB / 460.8 MB, free: 3.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002827/0.5033, allocations: 444 kB / 461.3 MB, free: 3.512 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0369/0.5403, allocations: 16.35 MB / 477.6 MB, free: 2.066 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001977/0.5423, allocations: 2.01 MB / 479.6 MB, free: 24 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001888/0.5442, allocations: 435.6 kB / 480.1 MB, free: 15.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001435/0.5457, allocations: 0.9913 MB / 481.1 MB, free: 14.6 MB / 398.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5457, allocations: 4 kB / 481.1 MB, free: 14.6 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08534/0.631, allocations: 45.37 MB / 0.5141 GB, free: 1.75 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001911/0.6313, allocations: 242.6 kB / 0.5143 GB, free: 1.504 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.001/3.632, allocations: 0 / 0.5143 GB, free: 1.504 MB / 430.1 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