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.0009302/0.0009302, allocations: 96.39 kB / 16.31 MB, free: 6.461 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.0009505/0.0009505, allocations: 173.4 kB / 17.19 MB, free: 6.348 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.408/1.408, allocations: 223.2 MB / 241.1 MB, free: 14.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003346/0.0003346, allocations: 8 kB / 300.8 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1351, allocations: 50.42 MB / 351.2 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01093/0.146, allocations: 9.289 MB / 360.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007411/0.1535, allocations: 3.76 MB / 364.3 MB, free: 6.598 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001761/0.1553, allocations: 51.81 kB / 364.3 MB, free: 6.547 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001902/0.1572, allocations: 0.6725 MB / 365 MB, free: 5.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002829/0.1601, allocations: 0.8217 MB / 365.8 MB, free: 5.047 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001052/0.1611, allocations: 331.5 kB / 366.2 MB, free: 4.723 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003526/0.1647, allocations: 2.087 MB / 368.2 MB, free: 2.633 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002189/0.1669, allocations: 1.713 MB / 370 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2108/0.3777, allocations: 1.002 MB / 371 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003139/0.3808, allocations: 1.312 MB / 372.3 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007835/0.3816, allocations: 161.7 kB / 372.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0015/0.3832, allocations: 357.7 kB / 372.8 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001081/0.3842, allocations: 0.7683 MB / 373.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00122/0.3855, allocations: 0.5823 MB / 374.1 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005977/0.3915, allocations: 4 MB / 378.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.3915, allocations: 0.625 kB / 378.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 4.188e-06/0.3915, allocations: 0.7812 kB / 378.1 MB, free: 10.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002385/0.3918, allocations: 0 / 378.1 MB, free: 10.8 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.009371/0.4011, allocations: 2.993 MB / 381.1 MB, free: 9.262 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.866e-05/0.4012, allocations: 9.125 kB / 381.1 MB, free: 9.262 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00182/0.403, allocations: 364.7 kB / 381.5 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00197/0.405, allocations: 410.7 kB / 381.9 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004159/0.4092, allocations: 1.744 MB / 383.6 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000223/0.4094, allocations: 192.2 kB / 383.8 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004843/0.4099, allocations: 249 kB / 384.1 MB, free: 8.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006862/0.4168, allocations: 3.228 MB / 387.3 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.697e-05/0.4169, allocations: 7.75 kB / 387.3 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002542/0.4171, allocations: 102.7 kB / 387.4 MB, free: 7.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000169/0.4173, allocations: 113.1 kB / 387.5 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005332/0.4227, allocations: 2.708 MB / 390.2 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01794/0.4406, allocations: 10.43 MB / 400.6 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001964/0.4426, allocations: 1.782 MB / 402.4 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002837/0.4429, allocations: 199.4 kB / 402.6 MB, free: 15.28 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.236e-05/0.443, allocations: 49.41 kB / 402.7 MB, free: 15.23 MB / 318.1 MB Notification: Performance of pre-optimization done (n=115): time 3.888e-06/0.443, allocations: 0 / 402.7 MB, free: 15.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=134): time 0.01802/0.461, allocations: 7.879 MB / 410.6 MB, free: 7.379 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.792e-05/0.4611, allocations: 68.72 kB / 410.6 MB, free: 7.297 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002935/0.464, allocations: 1.841 MB / 412.5 MB, free: 5.457 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001454/0.4642, allocations: 49.7 kB / 412.5 MB, free: 5.402 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008314/0.465, allocations: 1.23 MB / 413.7 MB, free: 4.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004077/0.4654, allocations: 472.1 kB / 414.2 MB, free: 3.703 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.093e-05/0.4655, allocations: 40.34 kB / 414.2 MB, free: 3.668 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.4657, allocations: 372.2 kB / 414.6 MB, free: 3.301 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001361/0.4671, allocations: 0.8315 MB / 415.4 MB, free: 2.469 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001656/0.4687, allocations: 1.314 MB / 416.8 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00153/0.4703, allocations: 1.023 MB / 417.8 MB, free: 15.94 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.286e-06/0.4703, allocations: 4 kB / 417.8 MB, free: 15.94 MB / 334.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005046/0.4753, allocations: 2.798 MB / 420.6 MB, free: 13.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.795e-05/0.4754, allocations: 12 kB / 420.6 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.674e-05/0.4754, allocations: 16 kB / 420.6 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009321/0.4764, allocations: 391.5 kB / 421 MB, free: 12.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001449/0.4778, allocations: 419.3 kB / 421.4 MB, free: 12.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005608/0.4834, allocations: 5.207 MB / 426.6 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002357/0.4858, allocations: 143.4 kB / 426.7 MB, free: 6.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002365/0.4861, allocations: 72.94 kB / 426.8 MB, free: 6.746 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 (190): * Single equations (assignments): 185 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001778/0.4879, allocations: 0.7885 MB / 427.6 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004984/0.4884, allocations: 201.6 kB / 427.8 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004115/0.4925, allocations: 2.395 MB / 430.2 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.53e-05/0.4926, allocations: 19.56 kB / 430.2 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.4926, allocations: 0 / 430.2 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.409e-05/0.4926, allocations: 11.97 kB / 430.2 MB, free: 3.324 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009913/0.5025, allocations: 5.267 MB / 435.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.248e-05/0.5026, allocations: 11.97 kB / 435.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.5037, allocations: 263.6 kB / 435.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001173/0.5048, allocations: 430.3 kB / 436.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001307/0.505, allocations: 35.98 kB / 436.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006467/0.5115, allocations: 6.684 MB / 442.9 MB, free: 6.133 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.839e-06/0.5115, allocations: 15.94 kB / 442.9 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006015/0.5175, allocations: 3.917 MB / 446.8 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001387/0.519, allocations: 450.6 kB / 447.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003892/0.5194, allocations: 32 kB / 447.3 MB, free: 1.465 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001201/0.5206, allocations: 119.8 kB / 447.4 MB, free: 1.348 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002525/0.5208, allocations: 108.8 kB / 447.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.529e-05/0.5209, allocations: 39.98 kB / 447.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002024/0.523, allocations: 1.271 MB / 448.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.523, allocations: 3.938 kB / 448.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002196/0.5252, allocations: 0.543 MB / 449.4 MB, free: 15.39 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 (118): * Single equations (assignments): 113 * 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%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006808/0.532, allocations: 5.675 MB / 455.1 MB, free: 9.539 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004356/0.5364, allocations: 2.422 MB / 457.5 MB, free: 7.086 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.849e-06/0.5364, allocations: 3.938 kB / 457.5 MB, free: 7.082 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002583/0.539, allocations: 1.503 MB / 459 MB, free: 5.539 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002551/0.5416, allocations: 412.2 kB / 459.4 MB, free: 5.145 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04/0.5816, allocations: 26.54 MB / 485.9 MB, free: 9.418 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001871/0.5835, allocations: 2.053 MB / 488 MB, free: 7.328 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001777/0.5853, allocations: 435.6 kB / 488.4 MB, free: 6.898 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001533/0.5869, allocations: 0.9975 MB / 489.4 MB, free: 5.902 MB / 398.1 MB Notification: Performance of SimCode: time 1.583e-06/0.5869, allocations: 0 / 489.4 MB, free: 5.902 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07823/0.6651, allocations: 45.29 MB / 0.5222 GB, free: 9.121 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001846/0.6653, allocations: 229.9 kB / 0.5224 GB, free: 8.879 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.974/3.64, allocations: 3.938 kB / 0.5224 GB, free: 8.875 MB / 446.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