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.001538/0.001537, allocations: 174.7 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06089/0.06089, allocations: 8.702 MB / 21.96 MB, free: 3.367 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 221.4 MB / 246 MB, free: 3.539 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.0009003/0.0009003, allocations: 88.36 kB / 299.1 MB, free: 2.973 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.237e-05/4.252e-05, allocations: 7.984 kB / 359.6 MB, free: 6.402 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3247, allocations: 52.54 MB / 412.2 MB, free: 22.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.516/0.8407, allocations: 133.7 MB / 0.5331 GB, free: 39.43 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002417/0.841, allocations: 76.2 kB / 0.5332 GB, free: 39.42 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2183/1.059, allocations: 98.21 MB / 0.6291 GB, free: 12.22 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.363e-06/1.059, allocations: 0 / 0.6291 GB, free: 12.22 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003575/1.06, allocations: 91.88 kB / 0.6292 GB, free: 12.13 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: 984 * Number of variables: 984 Notification: Performance of Generate backend data structure: time 0.01264/1.072, allocations: 3.824 MB / 0.6329 GB, free: 8.246 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/1.072, allocations: 8.031 kB / 0.6329 GB, free: 8.238 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002005/1.074, allocations: 0.5574 MB / 0.6335 GB, free: 7.672 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005735/1.08, allocations: 0.9198 MB / 0.6344 GB, free: 6.746 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01147/1.092, allocations: 3.721 MB / 0.638 GB, free: 2.973 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003244/1.092, allocations: 279.5 kB / 0.6383 GB, free: 2.699 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001347/1.093, allocations: 379.9 kB / 0.6386 GB, free: 2.328 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01011/1.104, allocations: 4.737 MB / 0.6432 GB, free: 13.45 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.345e-05/1.104, allocations: 11.89 kB / 0.6433 GB, free: 13.44 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003927/1.104, allocations: 167.9 kB / 0.6434 GB, free: 13.28 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001744/1.104, allocations: 171.4 kB / 0.6436 GB, free: 13.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008134/1.112, allocations: 3.883 MB / 0.6474 GB, free: 9.223 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03699/1.149, allocations: 16.61 MB / 0.6636 GB, free: 8.184 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3684/1.518, allocations: 8.059 MB / 0.6715 GB, free: 69.64 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004362/1.522, allocations: 1.813 MB / 0.6732 GB, free: 69.62 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01042/1.533, allocations: 5.3 MB / 0.6784 GB, free: 68.64 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.191e-05/1.533, allocations: 57.03 kB / 0.6785 GB, free: 68.61 MB / 458.7 MB Notification: Performance of pre-optimization done (n=181): time 5.431e-06/1.533, allocations: 0 / 0.6785 GB, free: 68.61 MB / 458.7 MB Notification: Performance of matching and sorting (n=184): time 0.009968/1.543, allocations: 5.318 MB / 0.6837 GB, free: 67.57 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.283e-05/1.543, allocations: 171.6 kB / 0.6838 GB, free: 67.38 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003342/1.546, allocations: 1.968 MB / 0.6858 GB, free: 67.16 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003122/1.547, allocations: 59.39 kB / 0.6858 GB, free: 67.12 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001195/1.548, allocations: 1.722 MB / 0.6875 GB, free: 66.57 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000702/1.549, allocations: 0.6254 MB / 0.6881 GB, free: 66.24 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001043/1.549, allocations: 41.94 kB / 0.6881 GB, free: 66.24 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001709/1.549, allocations: 406.1 kB / 0.6885 GB, free: 65.93 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/1.55, allocations: 0.855 MB / 0.6894 GB, free: 65.92 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001478/1.552, allocations: 1.496 MB / 0.6908 GB, free: 65.18 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/1.553, allocations: 1.106 MB / 0.6919 GB, free: 65.16 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/1.553, allocations: 3.875 kB / 0.6919 GB, free: 65.16 MB / 458.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.004754/1.558, allocations: 3.1 MB / 0.6949 GB, free: 64.82 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001716/1.56, allocations: 7.846 MB / 0.7026 GB, free: 56.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.525e-05/1.56, allocations: 21.22 kB / 0.7026 GB, free: 56.45 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001065/1.561, allocations: 0.49 MB / 0.7031 GB, free: 56.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001784/1.562, allocations: 492.6 kB / 0.7036 GB, free: 56.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006594/1.569, allocations: 8.33 MB / 0.7117 GB, free: 51.06 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002662/1.572, allocations: 107.3 kB / 0.7118 GB, free: 51.06 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003554/1.572, allocations: 91.94 kB / 0.7119 GB, free: 51.06 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/1.572, allocations: 3.844 kB / 0.7119 GB, free: 51.06 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004674/1.577, allocations: 2.853 MB / 0.7147 GB, free: 50.87 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.065e-05/1.577, allocations: 17.22 kB / 0.7147 GB, free: 50.87 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001015/1.578, allocations: 0.4944 MB / 0.7152 GB, free: 50.83 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001666/1.58, allocations: 485.4 kB / 0.7156 GB, free: 50.83 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006418/1.586, allocations: 8.342 MB / 0.7238 GB, free: 45.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002557/1.589, allocations: 92.97 kB / 0.7239 GB, free: 45.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003366/1.589, allocations: 92.19 kB / 0.724 GB, free: 45.46 MB / 458.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.0005833/1.59, allocations: 253.6 kB / 0.7242 GB, free: 45.34 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005798/1.59, allocations: 256.6 kB / 0.7245 GB, free: 45.21 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00484/1.595, allocations: 2.86 MB / 0.7272 GB, free: 44.83 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.657e-05/1.595, allocations: 18.47 kB / 0.7273 GB, free: 44.83 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/1.595, allocations: 3.656 kB / 0.7273 GB, free: 44.83 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.139e-05/1.595, allocations: 13.31 kB / 0.7273 GB, free: 44.83 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0103/1.605, allocations: 6.152 MB / 0.7333 GB, free: 44.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/1.606, allocations: 0 / 0.7333 GB, free: 44.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/1.607, allocations: 263.2 kB / 0.7335 GB, free: 44.11 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001431/1.608, allocations: 0.6676 MB / 0.7342 GB, free: 44.02 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001241/1.608, allocations: 46.36 kB / 0.7342 GB, free: 44 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01018/1.618, allocations: 12.83 MB / 0.7468 GB, free: 33.62 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/1.618, allocations: 5.078 kB / 0.7468 GB, free: 33.62 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006061/1.625, allocations: 4.129 MB / 0.7508 GB, free: 31.53 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001544/1.626, allocations: 0.5265 MB / 0.7513 GB, free: 31.16 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003451/1.626, allocations: 44.86 kB / 0.7514 GB, free: 31.14 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/1.628, allocations: 91.27 kB / 0.7514 GB, free: 31.11 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004253/1.628, allocations: 134.5 kB / 0.7516 GB, free: 31.09 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/1.628, allocations: 50.61 kB / 0.7516 GB, free: 31.08 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002494/1.631, allocations: 1.497 MB / 0.7531 GB, free: 30.45 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.623e-06/1.631, allocations: 0 / 0.7531 GB, free: 30.45 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004944/1.636, allocations: 1.372 MB / 0.7544 GB, free: 30.33 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.00602/1.642, allocations: 5.536 MB / 0.7598 GB, free: 27.23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006262/1.648, allocations: 4.933 MB / 0.7646 GB, free: 24.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/1.648, allocations: 0 / 0.7646 GB, free: 24.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00227/1.65, allocations: 1.977 MB / 0.7666 GB, free: 23.49 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003141/1.653, allocations: 0.6645 MB / 0.7672 GB, free: 23.31 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01311/1.667, allocations: 6.741 MB / 0.7738 GB, free: 20.49 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002061/1.669, allocations: 2.646 MB / 0.7764 GB, free: 19.39 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003327/1.672, allocations: 0.8863 MB / 0.7773 GB, free: 19.29 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001416/1.673, allocations: 1.39 MB / 0.7786 GB, free: 18.11 MB / 458.7 MB Notification: Performance of SimCode: time 1.402e-06/1.673, allocations: 0 / 0.7786 GB, free: 18.11 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3863/2.06, allocations: 77.57 MB / 0.8544 GB, free: 102.9 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001689/2.06, allocations: 181.4 kB / 0.8545 GB, free: 102.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.813/6.873, allocations: 1.547 kB / 0.8545 GB, free: 102.7 MB / 490.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)