Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.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_Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Rectifier",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.0008459/0.0008461, allocations: 91.75 kB / 16.31 MB, free: 5.609 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.0009266/0.0009267, allocations: 183.7 kB / 17.21 MB, free: 5.523 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.339/1.339, allocations: 223.2 MB / 241.2 MB, free: 332 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002706/0.0002707, allocations: 12 kB / 300.9 MB, free: 6.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1209, allocations: 50.41 MB / 351.3 MB, free: 3.906 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier): time 0.01287/0.1338, allocations: 10.58 MB / 361.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01356/0.1475, allocations: 6.184 MB / 368.1 MB, free: 3.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002355/0.1499, allocations: 59.69 kB / 368.2 MB, free: 3.012 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002547/0.1524, allocations: 0.707 MB / 368.9 MB, free: 2.301 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003168/0.1556, allocations: 0.8076 MB / 369.7 MB, free: 1.488 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004593/0.1602, allocations: 1.403 MB / 371.1 MB, free: 100 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2193/0.3796, allocations: 3.448 MB / 374.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003385/0.383, allocations: 1.424 MB / 376 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00298/0.386, allocations: 1.114 MB / 377.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00306/0.3891, allocations: 1.4 MB / 378.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000453/0.3896, allocations: 153 kB / 378.6 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001205/0.3908, allocations: 348.7 kB / 379 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009487/0.3918, allocations: 0.7378 MB / 379.7 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001064/0.3928, allocations: 0.5732 MB / 380.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004723/0.3976, allocations: 3.724 MB / 384 MB, free: 9.414 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.3976, allocations: 2.203 kB / 384 MB, free: 9.414 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.3976, allocations: 3.938 kB / 384 MB, free: 9.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001371/0.3977, allocations: 0 / 384 MB, free: 9.41 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: 617 * Number of variables: 617 Notification: Performance of Generate backend data structure: time 0.007272/0.405, allocations: 2.967 MB / 387 MB, free: 7.645 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/0.4051, allocations: 9.062 kB / 387 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001206/0.4063, allocations: 344.5 kB / 387.3 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001927/0.4082, allocations: 426.9 kB / 387.7 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003939/0.4122, allocations: 1.636 MB / 389.4 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002222/0.4125, allocations: 175.6 kB / 389.5 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007782/0.4132, allocations: 239 kB / 389.8 MB, free: 6.609 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005944/0.4192, allocations: 3.049 MB / 392.8 MB, free: 5.727 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.478e-05/0.4193, allocations: 8.906 kB / 392.8 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002425/0.4196, allocations: 98.39 kB / 392.9 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001099/0.4197, allocations: 104.1 kB / 393 MB, free: 5.711 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004178/0.4239, allocations: 2.535 MB / 395.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01459/0.4385, allocations: 10.3 MB / 405.9 MB, free: 12.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00315/0.4417, allocations: 2.722 MB / 408.6 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001774/0.4435, allocations: 1.222 MB / 409.8 MB, free: 8 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002534/0.4437, allocations: 122.4 kB / 409.9 MB, free: 7.859 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.316e-05/0.4438, allocations: 59.81 kB / 410 MB, free: 7.793 MB / 318.1 MB Notification: Performance of pre-optimization done (n=149): time 3.957e-06/0.4438, allocations: 0 / 410 MB, free: 7.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=166): time 0.01736/0.4612, allocations: 8.091 MB / 418.1 MB, free: 15.55 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.658e-05/0.4613, allocations: 175.5 kB / 418.2 MB, free: 15.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003235/0.4645, allocations: 1.858 MB / 420.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000214/0.4648, allocations: 59.56 kB / 420.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009393/0.4657, allocations: 1.146 MB / 421.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004706/0.4662, allocations: 0.5642 MB / 421.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.836e-05/0.4663, allocations: 36 kB / 421.9 MB, free: 11.63 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.4665, allocations: 381.9 kB / 422.3 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/0.4678, allocations: 0.8589 MB / 423.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001607/0.4694, allocations: 1.321 MB / 424.5 MB, free: 8.895 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001533/0.471, allocations: 1.048 MB / 425.5 MB, free: 7.848 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.471, allocations: 4 kB / 425.5 MB, free: 7.844 MB / 334.1 MB Notification: Performance of matching and sorting (n=242) (initialization): time 0.005203/0.4762, allocations: 3.137 MB / 428.6 MB, free: 4.664 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003038/0.4765, allocations: 462.9 kB / 429.1 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.683e-05/0.4766, allocations: 16 kB / 429.1 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001823/0.4784, allocations: 0.7964 MB / 429.9 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/0.4797, allocations: 359.4 kB / 430.3 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01189/0.4916, allocations: 11.84 MB / 442.1 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002121/0.4938, allocations: 108 kB / 442.2 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001885/0.494, allocations: 75.98 kB / 442.3 MB, free: 6.188 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.019e-05/0.494, allocations: 4 kB / 442.3 MB, free: 6.184 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004693/0.4987, allocations: 2.906 MB / 445.2 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.878e-05/0.4988, allocations: 20.03 kB / 445.2 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00181/0.5006, allocations: 0.7897 MB / 446 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.5019, allocations: 351.5 kB / 446.3 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01239/0.5143, allocations: 11.83 MB / 458.2 MB, free: 5.574 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002199/0.5166, allocations: 99.95 kB / 458.3 MB, free: 5.477 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002278/0.5168, allocations: 72 kB / 458.3 MB, free: 5.406 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 7 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off,voltageController.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (191): * Single equations (assignments): 183 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * 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%) 16,(1,100.0%) 6} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.002096/0.5189, allocations: 0.8049 MB / 459.2 MB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005813/0.5195, allocations: 217.5 kB / 459.4 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004802/0.5243, allocations: 2.86 MB / 462.2 MB, free: 1.469 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.686e-05/0.5243, allocations: 16 kB / 462.2 MB, free: 1.453 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/0.5244, allocations: 4 kB / 462.2 MB, free: 1.449 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.857e-05/0.5244, allocations: 11.97 kB / 462.3 MB, free: 1.438 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01002/0.5344, allocations: 5.69 MB / 467.9 MB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/0.5345, allocations: 7.984 kB / 468 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009473/0.5354, allocations: 231.7 kB / 468.2 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001973/0.5374, allocations: 0.8309 MB / 469 MB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000125/0.5375, allocations: 43.98 kB / 469.1 MB, free: 10.51 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01293/0.5505, allocations: 13.29 MB / 482.3 MB, free: 12.42 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.183e-06/0.5505, allocations: 4 kB / 482.3 MB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006533/0.5571, allocations: 4.042 MB / 486.4 MB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001368/0.5585, allocations: 482.3 kB / 486.9 MB, free: 7.789 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003744/0.5589, allocations: 39.98 kB / 486.9 MB, free: 7.75 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/0.56, allocations: 103.9 kB / 487 MB, free: 7.648 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003623/0.5604, allocations: 133 kB / 487.1 MB, free: 7.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001003/0.5605, allocations: 50.52 kB / 487.2 MB, free: 7.473 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002126/0.5626, allocations: 1.262 MB / 488.4 MB, free: 6.188 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5626, allocations: 0 / 488.4 MB, free: 6.188 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004791/0.5674, allocations: 1.074 MB / 489.5 MB, free: 5.113 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 12 (smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],speed.phi,speed.w,voltageController.I.y,capacitor1.v,capacitor2.v,filter.x[1],filter.x[2]) * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 16,(1,100.0%) 6,(2,100.0%) 1} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.00709/0.5745, allocations: 4.711 MB / 494.2 MB, free: 308 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008005/0.5826, allocations: 5.273 MB / 499.5 MB, free: 10.86 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.959e-06/0.5826, allocations: 1.875 kB / 499.5 MB, free: 10.86 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003105/0.5857, allocations: 2.082 MB / 0.4898 GB, free: 8.707 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003319/0.5891, allocations: 0.5677 MB / 0.4904 GB, free: 8.145 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03595/0.625, allocations: 17.33 MB / 0.5073 GB, free: 5.648 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001862/0.627, allocations: 1.973 MB / 0.5092 GB, free: 3.637 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001969/0.6289, allocations: 0.5012 MB / 0.5097 GB, free: 3.133 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00133/0.6303, allocations: 0.9874 MB / 0.5107 GB, free: 2.148 MB / 430.1 MB Notification: Performance of SimCode: time 1.012e-06/0.6303, allocations: 0 / 0.5107 GB, free: 2.148 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.299/0.9293, allocations: 60.1 MB / 0.5694 GB, free: 125.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002303/0.9296, allocations: 243.4 kB / 0.5696 GB, free: 125.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.617/4.547, allocations: 2.812 kB / 0.5696 GB, free: 125.3 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Rectifier_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Rectifier.pipe 2>&1)