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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 175 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 221.3 MB / 235.5 MB, free: 2.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009687/0.0009686, allocations: 88.05 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.608e-05/3.618e-05, allocations: 3.984 kB / 343.9 MB, free: 4.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09063/0.09069, allocations: 50.42 MB / 394.4 MB, free: 1.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3506/0.4413, allocations: 126.2 MB / 0.5083 GB, free: 9.23 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000255/0.4416, allocations: 87.95 kB / 0.5084 GB, free: 9.145 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3792/0.8208, allocations: 55.62 MB / 0.5627 GB, free: 102.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.8208, allocations: 0 / 0.5627 GB, free: 102.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002409/0.8211, allocations: 66.09 kB / 0.5628 GB, free: 102.8 MB / 426.7 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.007579/0.8287, allocations: 2.589 MB / 0.5653 GB, free: 101.7 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.8287, allocations: 9.625 kB / 0.5653 GB, free: 101.7 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001203/0.83, allocations: 343.7 kB / 0.5656 GB, free: 101.6 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001814/0.8318, allocations: 432.4 kB / 0.5661 GB, free: 101.4 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003532/0.8353, allocations: 1.742 MB / 0.5678 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001397/0.8355, allocations: 178.3 kB / 0.5679 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004814/0.836, allocations: 243.7 kB / 0.5682 GB, free: 101 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005642/0.8416, allocations: 2.964 MB / 0.571 GB, free: 100.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-05/0.8417, allocations: 9.188 kB / 0.5711 GB, free: 100.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002475/0.842, allocations: 103.5 kB / 0.5712 GB, free: 100.5 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000135/0.8421, allocations: 104.4 kB / 0.5713 GB, free: 100.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004671/0.8468, allocations: 2.362 MB / 0.5736 GB, free: 100.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01627/0.8631, allocations: 10.3 MB / 0.5836 GB, free: 94.97 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002992/0.8662, allocations: 2.7 MB / 0.5863 GB, free: 93.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/0.8675, allocations: 1.118 MB / 0.5874 GB, free: 92.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003237/0.8678, allocations: 134.8 kB / 0.5875 GB, free: 92.74 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.8679, allocations: 55.78 kB / 0.5875 GB, free: 92.69 MB / 426.7 MB Notification: Performance of pre-optimization done (n=152): time 3.276e-06/0.8679, allocations: 0 / 0.5875 GB, free: 92.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=175): time 0.01587/0.8838, allocations: 7.349 MB / 0.5947 GB, free: 90.11 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.221e-05/0.8839, allocations: 178.1 kB / 0.5949 GB, free: 89.92 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002318/0.8862, allocations: 1.603 MB / 0.5964 GB, free: 89.25 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00019/0.8864, allocations: 55.8 kB / 0.5965 GB, free: 89.19 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000547/0.8869, allocations: 1.165 MB / 0.5976 GB, free: 88.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003543/0.8873, allocations: 0.5912 MB / 0.5982 GB, free: 87.83 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.93e-05/0.8874, allocations: 39.62 kB / 0.5983 GB, free: 87.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.419e-05/0.8875, allocations: 379.7 kB / 0.5986 GB, free: 87.46 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/0.8887, allocations: 0.8879 MB / 0.5995 GB, free: 87.14 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001368/0.89, allocations: 1.328 MB / 0.6008 GB, free: 86.29 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001467/0.8915, allocations: 1.083 MB / 0.6018 GB, free: 85.87 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.759e-06/0.8915, allocations: 9.594 kB / 0.6018 GB, free: 85.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.005041/0.8966, allocations: 3.263 MB / 0.605 GB, free: 84.63 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007843/0.8974, allocations: 4.896 MB / 0.6098 GB, free: 79.39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.072e-05/0.8974, allocations: 14.06 kB / 0.6098 GB, free: 79.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00216/0.8996, allocations: 0.9672 MB / 0.6108 GB, free: 79.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.9011, allocations: 367.6 kB / 0.6111 GB, free: 79.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01214/0.9132, allocations: 11.97 MB / 0.6228 GB, free: 70.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002255/0.9155, allocations: 113.4 kB / 0.6229 GB, free: 70.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004592/0.916, allocations: 71.69 kB / 0.623 GB, free: 70.89 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.916, allocations: 7 kB / 0.623 GB, free: 70.89 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005522/0.9216, allocations: 3.044 MB / 0.626 GB, free: 68.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.853e-05/0.9217, allocations: 19.7 kB / 0.626 GB, free: 68.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002208/0.9239, allocations: 0.9572 MB / 0.6269 GB, free: 68.06 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00153/0.9254, allocations: 370.9 kB / 0.6273 GB, free: 67.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01168/0.9371, allocations: 11.96 MB / 0.639 GB, free: 56.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002033/0.9392, allocations: 106.4 kB / 0.6391 GB, free: 56.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003279/0.9396, allocations: 76 kB / 0.6391 GB, free: 56.29 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 54 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 185 * 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: 4 * 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%) 27} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006169/0.9402, allocations: 220.1 kB / 0.6393 GB, free: 56.07 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000632/0.9408, allocations: 217.4 kB / 0.6395 GB, free: 55.86 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004877/0.9457, allocations: 2.935 MB / 0.6424 GB, free: 53.37 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/0.9458, allocations: 19.94 kB / 0.6424 GB, free: 53.35 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-05/0.9458, allocations: 8 kB / 0.6424 GB, free: 53.34 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.488e-05/0.9458, allocations: 7.734 kB / 0.6424 GB, free: 53.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009098/0.9549, allocations: 5.862 MB / 0.6482 GB, free: 48.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/0.955, allocations: 4 kB / 0.6482 GB, free: 48.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008982/0.9559, allocations: 220.8 kB / 0.6484 GB, free: 48.36 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002201/0.9581, allocations: 1.023 MB / 0.6494 GB, free: 47.55 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001287/0.9582, allocations: 39.42 kB / 0.6494 GB, free: 47.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01202/0.9702, allocations: 13.67 MB / 0.6628 GB, free: 34.48 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.9703, allocations: 8 kB / 0.6628 GB, free: 34.48 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006183/0.9765, allocations: 4.404 MB / 0.6671 GB, free: 30.47 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001246/0.9778, allocations: 494.3 kB / 0.6676 GB, free: 30.02 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006008/0.9784, allocations: 47 kB / 0.6676 GB, free: 29.98 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001509/0.9799, allocations: 100.9 kB / 0.6677 GB, free: 29.91 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000361/0.9803, allocations: 141.8 kB / 0.6678 GB, free: 29.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/0.9804, allocations: 47.7 kB / 0.6679 GB, free: 29.78 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001875/0.9823, allocations: 1.237 MB / 0.6691 GB, free: 28.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.9823, allocations: 0 / 0.6691 GB, free: 28.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004728/0.987, allocations: 1.19 MB / 0.6702 GB, free: 27.43 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 110 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 27,(2,100.0%) 4} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.006753/0.9938, allocations: 5.756 MB / 0.6759 GB, free: 22.07 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007476/1.001, allocations: 5.432 MB / 0.6812 GB, free: 16.48 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/1.001, allocations: 0 / 0.6812 GB, free: 16.48 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002989/1.004, allocations: 2.091 MB / 0.6832 GB, free: 14.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002831/1.007, allocations: 0.5376 MB / 0.6837 GB, free: 13.81 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01186/1.019, allocations: 5.407 MB / 0.689 GB, free: 8.375 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002194/1.021, allocations: 2.047 MB / 0.691 GB, free: 6.289 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002857/1.024, allocations: 0.6968 MB / 0.6917 GB, free: 5.609 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001152/1.025, allocations: 0.964 MB / 0.6926 GB, free: 4.645 MB / 426.7 MB Notification: Performance of SimCode: time 8.62e-07/1.025, allocations: 0 / 0.6926 GB, free: 4.645 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3627/1.388, allocations: 69.66 MB / 0.7607 GB, free: 98.04 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001512/1.388, allocations: 210.3 kB / 0.7609 GB, free: 97.81 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.257/5.645, allocations: 0 / 0.7609 GB, free: 97.81 MB / 442.7 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)