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/ModelicaServices 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/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) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_Rectifier,tolerance=1e-07,outputFormat="empty",numberOfIntervals=22000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier") translateModel(HanserModelica.SynchronousMachines.SMEE_Rectifier,tolerance=1e-07,outputFormat="empty",numberOfIntervals=22000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009942/0.0009942, allocations: 102.8 kB / 15.06 MB, free: 1.098 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.392/1.392, allocations: 223.2 MB / 239 MB, free: 5.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 189 kB / 290.2 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.033/0.033, allocations: 8.792 MB / 350.1 MB, free: 4.773 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004386/0.0004387, allocations: 11.44 kB / 413.1 MB, free: 43.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09413/0.09458, allocations: 52.56 MB / 465.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Rectifier): time 0.01406/0.1087, allocations: 13.92 MB / 479.6 MB, free: 15.63 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01576/0.1245, allocations: 7.879 MB / 487.4 MB, free: 7.738 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003912/0.1284, allocations: 91.62 kB / 487.5 MB, free: 7.648 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004203/0.1327, allocations: 0.9522 MB / 488.5 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006719/0.1394, allocations: 1.53 MB / 490 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005855/0.1453, allocations: 1.741 MB / 491.8 MB, free: 3.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007347/0.1527, allocations: 3.478 MB / 495.2 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003672/0.1564, allocations: 2.375 MB / 497.6 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002655/0.159, allocations: 1.541 MB / 499.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002849/0.1619, allocations: 1.781 MB / 0.4892 GB, free: 10.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005729/0.1625, allocations: 243.9 kB / 0.4894 GB, free: 9.945 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0014/0.1639, allocations: 0.5113 MB / 0.4899 GB, free: 9.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009673/0.1649, allocations: 0.8603 MB / 0.4908 GB, free: 8.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001128/0.166, allocations: 0.8823 MB / 0.4916 GB, free: 7.68 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007446/0.1735, allocations: 6.369 MB / 0.4978 GB, free: 1.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.1735, allocations: 0 / 0.4978 GB, free: 1.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1735, allocations: 0 / 0.4978 GB, free: 1.293 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002033/0.1737, allocations: 0 / 0.4978 GB, free: 1.293 MB / 334.1 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.01134/0.1851, allocations: 4.5 MB / 0.5022 GB, free: 12.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.1851, allocations: 8.031 kB / 0.5023 GB, free: 12.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005494/0.1906, allocations: 1.002 MB / 0.5032 GB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005937/0.1966, allocations: 2.723 MB / 0.5059 GB, free: 8.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002418/0.1968, allocations: 279.5 kB / 0.5062 GB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007382/0.1976, allocations: 379.9 kB / 0.5065 GB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009068/0.2067, allocations: 4.849 MB / 0.5113 GB, free: 3.367 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.909e-05/0.2068, allocations: 11.94 kB / 0.5113 GB, free: 3.355 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003632/0.2071, allocations: 156 kB / 0.5114 GB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001581/0.2073, allocations: 163.4 kB / 0.5116 GB, free: 3.043 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007101/0.2144, allocations: 4.179 MB / 0.5156 GB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2303/0.4447, allocations: 16.59 MB / 0.5318 GB, free: 56.94 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006728/0.4515, allocations: 8.161 MB / 0.5398 GB, free: 51.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008582/0.4601, allocations: 4.54 MB / 0.5443 GB, free: 50.47 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.593e-05/0.4602, allocations: 59.2 kB / 0.5443 GB, free: 50.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=197): time 4.028e-06/0.4602, allocations: 2.875 kB / 0.5443 GB, free: 50.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=201): time 0.01424/0.4745, allocations: 7.69 MB / 0.5518 GB, free: 48.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.778e-05/0.4746, allocations: 178.1 kB / 0.552 GB, free: 48.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003177/0.4778, allocations: 2.264 MB / 0.5542 GB, free: 48.1 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001667/0.4779, allocations: 58.52 kB / 0.5543 GB, free: 48.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001033/0.479, allocations: 1.697 MB / 0.5559 GB, free: 46.74 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003961/0.4794, allocations: 0.6757 MB / 0.5566 GB, free: 46.22 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.675e-05/0.4795, allocations: 51.48 kB / 0.5566 GB, free: 46.18 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.4796, allocations: 400.1 kB / 0.557 GB, free: 45.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/0.4808, allocations: 0.9406 MB / 0.5579 GB, free: 45.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001362/0.4822, allocations: 1.575 MB / 0.5595 GB, free: 44.33 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001382/0.4836, allocations: 1.203 MB / 0.5606 GB, free: 43.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.045e-06/0.4836, allocations: 3.969 kB / 0.5606 GB, free: 43.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=305) (initialization): time 0.004789/0.4884, allocations: 3.363 MB / 0.5639 GB, free: 42.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.001297/0.4897, allocations: 7.562 MB / 0.5713 GB, free: 33.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.435e-05/0.4898, allocations: 15.84 kB / 0.5713 GB, free: 33.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009487/0.4907, allocations: 0.4892 MB / 0.5718 GB, free: 33.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001732/0.4925, allocations: 0.5129 MB / 0.5723 GB, free: 33.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006043/0.4985, allocations: 8.477 MB / 0.5806 GB, free: 25.83 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002082/0.5006, allocations: 103.1 kB / 0.5807 GB, free: 25.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001708/0.5008, allocations: 98.66 kB / 0.5808 GB, free: 25.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.925e-06/0.5008, allocations: 3.875 kB / 0.5808 GB, free: 25.75 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003938/0.5048, allocations: 3.08 MB / 0.5838 GB, free: 24.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.159e-05/0.5048, allocations: 18.12 kB / 0.5838 GB, free: 24.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008722/0.5057, allocations: 0.4981 MB / 0.5843 GB, free: 23.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001633/0.5073, allocations: 0.4993 MB / 0.5848 GB, free: 23.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006016/0.5134, allocations: 8.485 MB / 0.5931 GB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002277/0.5157, allocations: 96.7 kB / 0.5932 GB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001488/0.5158, allocations: 103.2 kB / 0.5933 GB, free: 13.99 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (273): * Single equations (assignments): 266 * 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.002177/0.518, allocations: 1.199 MB / 0.5944 GB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006045/0.5186, allocations: 260.8 kB / 0.5947 GB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003923/0.5225, allocations: 2.996 MB / 0.5976 GB, free: 9.453 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.087e-05/0.5226, allocations: 20 kB / 0.5976 GB, free: 9.434 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.5226, allocations: 4 kB / 0.5976 GB, free: 9.43 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.576e-05/0.5226, allocations: 11.92 kB / 0.5976 GB, free: 9.418 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008625/0.5312, allocations: 6.623 MB / 0.6041 GB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.216e-06/0.5313, allocations: 4 kB / 0.6041 GB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.5324, allocations: 291.9 kB / 0.6044 GB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001341/0.5338, allocations: 0.6733 MB / 0.605 GB, free: 1.707 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001112/0.5339, allocations: 48 kB / 0.6051 GB, free: 1.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01238/0.5463, allocations: 13.12 MB / 0.6179 GB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.5463, allocations: 0 / 0.6179 GB, free: 3.754 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00738/0.5537, allocations: 4.521 MB / 0.6223 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001734/0.5555, allocations: 0.5485 MB / 0.6229 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003775/0.5559, allocations: 40 kB / 0.6229 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/0.5572, allocations: 105.1 kB / 0.623 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000375/0.5576, allocations: 149.7 kB / 0.6231 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/0.5577, allocations: 48 kB / 0.6232 GB, free: 14.17 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002507/0.5602, allocations: 1.534 MB / 0.6247 GB, free: 12.62 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5602, allocations: 0 / 0.6247 GB, free: 12.62 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004914/0.5651, allocations: 1.325 MB / 0.626 GB, free: 11.3 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 12 (smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 142 * 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.0005149/0.5657, allocations: 235.8 kB / 0.6262 GB, free: 11.08 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007542/0.5732, allocations: 5.145 MB / 0.6312 GB, free: 5.785 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.5732, allocations: 4.25 kB / 0.6312 GB, free: 5.781 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003129/0.5764, allocations: 2.113 MB / 0.6333 GB, free: 3.602 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002964/0.5794, allocations: 0.6682 MB / 0.6339 GB, free: 2.938 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01332/0.5927, allocations: 8.568 MB / 0.6423 GB, free: 10.34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002284/0.595, allocations: 2.65 MB / 0.6449 GB, free: 7.66 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002447/0.5975, allocations: 0.6502 MB / 0.6455 GB, free: 7.004 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004155/0.5979, allocations: 163.4 kB / 0.6457 GB, free: 6.844 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.5979, allocations: 0 / 0.6457 GB, free: 6.844 MB / 414.1 MB Notification: Performance of Templates: time 0.07694/0.6749, allocations: 43.29 MB / 0.688 GB, free: 11.91 MB / 462.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier.makefile Environment - environmentSimulation: (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 & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Rectifier.pipe 2>&1) Environment - environmentSimulation: