Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.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/HanserModelica 2.0.0-master/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 HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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(HanserModelica.SynchronousMachines.SMEE_Rectifier,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Rectifier,fileNamePrefix="HanserModelica_HanserModelica_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.001218/0.001218, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04559/0.04559, allocations: 8.712 MB / 16.78 MB, free: 3.379 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.41/1.41, allocations: 221.5 MB / 240.9 MB, free: 13.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009496/0.0009498, allocations: 92.02 kB / 293.8 MB, free: 7.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.107e-05/2.109e-05, allocations: 0 / 352.7 MB, free: 1.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.135, allocations: 52.55 MB / 405.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4054/0.5405, allocations: 133.1 MB / 0.5257 GB, free: 2.691 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/0.5408, allocations: 71.97 kB / 0.5258 GB, free: 2.621 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5342/1.075, allocations: 96.96 MB / 0.6205 GB, free: 82.43 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.623e-06/1.075, allocations: 0 / 0.6205 GB, free: 82.43 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003837/1.075, allocations: 94.06 kB / 0.6206 GB, free: 82.41 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: 984 * Number of variables: 984 Notification: Performance of Generate backend data structure: time 0.01426/1.09, allocations: 3.816 MB / 0.6243 GB, free: 80.88 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.457e-05/1.09, allocations: 14.23 kB / 0.6243 GB, free: 80.88 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006646/1.096, allocations: 0.921 MB / 0.6252 GB, free: 80.63 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01231/1.109, allocations: 3.718 MB / 0.6289 GB, free: 79.26 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002461/1.109, allocations: 126.6 kB / 0.629 GB, free: 79.25 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001524/1.111, allocations: 227.5 kB / 0.6292 GB, free: 79.24 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008959/1.12, allocations: 3.654 MB / 0.6328 GB, free: 77.65 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01104/1.131, allocations: 4.205 MB / 0.6369 GB, free: 75.72 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001336/1.131, allocations: 7.844 kB / 0.6369 GB, free: 75.71 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008297/1.132, allocations: 3.875 kB / 0.6369 GB, free: 75.71 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001482/1.132, allocations: 166.2 kB / 0.637 GB, free: 75.7 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02823/1.16, allocations: 15.9 MB / 0.6526 GB, free: 66.69 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006345/1.166, allocations: 7.948 MB / 0.6603 GB, free: 59.76 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002574/1.169, allocations: 1.722 MB / 0.662 GB, free: 59.11 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009766/1.179, allocations: 5.163 MB / 0.6671 GB, free: 56.21 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.928e-05/1.179, allocations: 55.22 kB / 0.6671 GB, free: 56.15 MB / 442.7 MB Notification: Performance of pre-optimization done (n=181): time 4.799e-06/1.179, allocations: 3.031 kB / 0.6671 GB, free: 56.15 MB / 442.7 MB Notification: Performance of matching and sorting (n=184): time 0.01052/1.189, allocations: 5.46 MB / 0.6724 GB, free: 53.47 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/1.19, allocations: 179.4 kB / 0.6726 GB, free: 53.29 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002532/1.192, allocations: 1.615 MB / 0.6742 GB, free: 52.58 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002056/1.192, allocations: 25.7 kB / 0.6742 GB, free: 52.55 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000869/1.193, allocations: 1.739 MB / 0.6759 GB, free: 51.21 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004094/1.194, allocations: 0.5962 MB / 0.6765 GB, free: 50.74 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.41e-05/1.194, allocations: 0 / 0.6765 GB, free: 50.74 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/1.194, allocations: 400.1 kB / 0.6769 GB, free: 50.39 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001062/1.195, allocations: 0.8114 MB / 0.6777 GB, free: 50.05 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00132/1.196, allocations: 1.442 MB / 0.6791 GB, free: 48.89 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001834/1.198, allocations: 1.203 MB / 0.6802 GB, free: 48.41 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.071e-05/1.198, allocations: 7.875 kB / 0.6803 GB, free: 48.41 MB / 442.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.004594/1.203, allocations: 2.987 MB / 0.6832 GB, free: 47.16 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00131/1.204, allocations: 7.741 MB / 0.6907 GB, free: 38.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.563e-05/1.204, allocations: 21.62 kB / 0.6908 GB, free: 38.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000947/1.205, allocations: 496.4 kB / 0.6912 GB, free: 38.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001747/1.207, allocations: 492.9 kB / 0.6917 GB, free: 38.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005821/1.213, allocations: 8.051 MB / 0.6996 GB, free: 32.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002343/1.215, allocations: 60.22 kB / 0.6996 GB, free: 32.16 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003048/1.215, allocations: 94.22 kB / 0.6997 GB, free: 32.14 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/1.215, allocations: 3.719 kB / 0.6997 GB, free: 32.14 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004228/1.22, allocations: 2.718 MB / 0.7024 GB, free: 29.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.322e-05/1.22, allocations: 20 kB / 0.7024 GB, free: 29.75 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000843/1.221, allocations: 0.4888 MB / 0.7029 GB, free: 29.33 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001591/1.222, allocations: 488.6 kB / 0.7033 GB, free: 28.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005804/1.228, allocations: 8.049 MB / 0.7112 GB, free: 20.99 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002391/1.23, allocations: 54.17 kB / 0.7112 GB, free: 20.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000303/1.231, allocations: 92 kB / 0.7113 GB, free: 20.86 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * Number of states: 0 () * Number of discrete variables: 7 (rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,voltageController.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (259): * Single equations (assignments): 252 * 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 {(1,100.0%) 5} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005567/1.231, allocations: 174.2 kB / 0.7115 GB, free: 20.68 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004641/1.236, allocations: 2.68 MB / 0.7141 GB, free: 18.28 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006129/1.237, allocations: 241.7 kB / 0.7143 GB, free: 18.04 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004444/1.241, allocations: 2.791 MB / 0.7171 GB, free: 15.35 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/1.241, allocations: 20 kB / 0.7171 GB, free: 15.33 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.729e-06/1.241, allocations: 7.953 kB / 0.7171 GB, free: 15.32 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.658e-05/1.241, allocations: 7.969 kB / 0.7171 GB, free: 15.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009329/1.25, allocations: 5.647 MB / 0.7226 GB, free: 9.578 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/1.25, allocations: 8.062 kB / 0.7226 GB, free: 9.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001113/1.252, allocations: 263.9 kB / 0.7229 GB, free: 9.312 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001338/1.253, allocations: 0.6391 MB / 0.7235 GB, free: 8.656 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001092/1.253, allocations: 23.98 kB / 0.7235 GB, free: 8.633 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0107/1.264, allocations: 12.38 MB / 0.7356 GB, free: 11.57 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.847e-06/1.264, allocations: 4 kB / 0.7356 GB, free: 11.56 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007336/1.271, allocations: 4.071 MB / 0.7396 GB, free: 7.344 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001681/1.273, allocations: 0.498 MB / 0.7401 GB, free: 6.824 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004119/1.273, allocations: 11.98 kB / 0.7401 GB, free: 6.812 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001151/1.274, allocations: 59.94 kB / 0.7401 GB, free: 6.754 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003683/1.275, allocations: 145.7 kB / 0.7403 GB, free: 6.609 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001096/1.275, allocations: 47.98 kB / 0.7403 GB, free: 6.562 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002251/1.277, allocations: 1.201 MB / 0.7415 GB, free: 5.344 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.32e-07/1.277, allocations: 0.5625 kB / 0.7415 GB, free: 5.344 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005783/1.283, allocations: 1.195 MB / 0.7427 GB, free: 4.148 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 12 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,speed.phi,speed.w,voltageController.I.y,capacitor1.v,capacitor2.v,filter.x[1],filter.x[2]) * Number of discrete variables: 6 (rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (131): * Single equations (assignments): 125 * 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 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.3318/1.615, allocations: 5.399 MB / 0.7479 GB, free: 88.57 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009437/1.624, allocations: 4.655 MB / 0.7525 GB, free: 87.43 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/1.624, allocations: 0 / 0.7525 GB, free: 87.43 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003318/1.628, allocations: 1.884 MB / 0.7543 GB, free: 86.79 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004147/1.632, allocations: 0.5045 MB / 0.7548 GB, free: 86.77 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01473/1.647, allocations: 6.506 MB / 0.7612 GB, free: 85.38 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002315/1.649, allocations: 2.638 MB / 0.7637 GB, free: 84.58 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003343/1.652, allocations: 0.8093 MB / 0.7645 GB, free: 84.48 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00167/1.654, allocations: 1.389 MB / 0.7659 GB, free: 84.48 MB / 458.7 MB Notification: Performance of SimCode: time 1.403e-06/1.654, allocations: 0 / 0.7659 GB, free: 84.48 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.135/1.789, allocations: 65.63 MB / 0.83 GB, free: 72.66 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001452/1.789, allocations: 140.6 kB / 0.8301 GB, free: 72.47 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.192/5.981, allocations: 11.55 kB / 0.8301 GB, free: 72.46 MB / 458.7 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Rectifier_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-07 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Rectifier.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier.pipe 2>&1)